[][src]Macro chek::debug_not_almost_equal

macro_rules! debug_not_almost_equal {
    ($left:expr, $right:expr $(,)?) => { ... };
    ($left:expr, $right:expr, $($msg_args:tt)+) => { ... };
}

Same as chek::not_almost_equal! in debug builds or release builds where the -C debug-assertions was provided to the compiler. For all other builds, vanishes without a trace.

Optionally may take an additional message to display on failure, which is formatted using standard format syntax.

Example

chek::debug_not_almost_equal!(4.0, 5.0);
chek::debug_not_almost_equal!(4.0, 5.0, "shouldn't be equal");