macro_rules! test_eq {
($name:ident, $left:expr, $right:expr) => { ... };
}
Expand description
Generate a test function $name
which asserts that $left
and $right
are equal.
ยงExample
mod test {
test_eq!(two_and_two_is_four, 2 + 2, 4);
}