pub fn assert_equal<T>(left: T, right: T, msg: &str) -> Result<(), Error>where T: PartialEq + Debug,
A helper like assert_eq! that instead returns Err(Error::Assertion) on failure.
assert_eq!
Err(Error::Assertion)