macro_rules! check {
($actual:expr) => { ... };
}Expand description
Captures an expression and its source text for assertion with a matcher.
use test_better_core::TestResult;
use test_better_matchers::{check, eq};
fn main() -> TestResult {
check!(2 + 2).satisfies(eq(4))?;
Ok(())
}