[][src]Macro chek::not_almost_equal

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

Panics if the provided values are almost equal to eachother.

Uses the almost crate. See the almost::equal documentation for more details.

A debug-only version is available as chek::debug_not_almost_equal!.

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

Example

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