Crate aprox_eq

Source

Macros§

assert_aprox_eq
Behaves exactly like assert_eq but calls on the aprox_eq() function as provided by the AproxEq trait instead of eq() as provided by PartialEq.
assert_aprox_ne
Behaves exactly like assert_ne but calls on the aprox_ne() function as provided by the AproxEq trait instead of ne().

Traits§

AproxEq
Trait for aproximate equality, mostly for dealing with small amounts of error that accumulate in floating point numbers which can be particularly annoying when trying to unit test.

Derive Macros§

AproxEq