Skip to main content

assert_eq_or_diff

Function assert_eq_or_diff 

Source
pub fn assert_eq_or_diff(
    a: &str,
    a_what: &str,
    b: &str,
    b_what: &str,
    message: &dyn Display,
)
Available on crate features testing only.
Expand description

Assert that a = b; if not, panic with a unidiff mentioning a_what, b_what and message

Normally it is more convenient to use the assert_eq_or_diff! macro.