Macro std::prelude::assert_eq
Re-export from std::assert_eq
Panics if lhs
and rhs
are not equal.
Examples
assert_eq!(1 + 1, 2);
Run this example
assert_eq!(1 + 1, 3); // panics
Run this example
Panics if lhs
and rhs
are not equal.
assert_eq!(1 + 1, 2);
Run this example
assert_eq!(1 + 1, 3); // panics
Run this example