Macros§
- assert_
aprox_ eq - Behaves exactly like
assert_eqbut calls on theaprox_eq()function as provided by theAproxEqtrait instead ofeq()as provided byPartialEq. - assert_
aprox_ ne - Behaves exactly like
assert_nebut calls on theaprox_ne()function as provided by theAproxEqtrait instead ofne().
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.