macro_rules! expect_eq { ( $a:expr, $b:expr ) => { ... }; }
Expand description
Expects that a == b; otherwise returns early.
§Examples
fn passing_test() -> Result<()> {
expect_eq!(1, 1);
Ok(())
}
fn failing_test() -> Result<()> {
expect_eq!(1, 2); // returns early
Ok(()) // won't be reached
}