ef_tests::assert

Function assert_equal

Source
pub fn assert_equal<T>(left: T, right: T, msg: &str) -> Result<(), Error>
where T: PartialEq + Debug,
Expand description

A helper like assert_eq! that instead returns Err(Error::Assertion) on failure.