assertables/assert_is_match/mod.rs
1//! Assert for method is_match(…).
2//!
3//! These macros help with any item that implements self.is_match(…).
4//!
5//! * [`assert_is_match!(matcher, matchee)`](macro@crate::assert_is_match) ≈ matcher.is_match(matchee)
6//!
7//! * [`assert_not_match!(matcher, matchee)`](macro@crate::assert_not_match) ≈ !matcher.is_match(matchee)
8//!
9//! # Example
10//!
11//! ```rust
12//! use assertables::*;
13//! use regex::Regex;
14//!
15//! let a = Regex::new(r"lf").expect("regex");
16//! let b = "alfa";
17//! assert_is_match!(a, b);
18//! ```
19
20pub mod assert_is_match;
21pub mod assert_not_match;