Macro dhat::assert_eq [−][src]
macro_rules! assert_eq {
($left : expr, $right : expr $(,) ?) => { ... };
($left : expr, $right : expr, $($arg : tt) +) => { ... };
}Expand description
Asserts that two expressions are equal.
Like std::assert_eq!, additional format arguments are supported. On
failure, this macro will save the profile data and panic.
Panics
Panics immediately (without saving the profile data) in the following circumstances.
- If called when a
Profileris not running or is not in testing mode. - If called after a previous
dhatassertion has failed with the currentProfiler. This is possible ifstd::panic::catch_unwindis used.