Macros§
- assert_
aprox_ eq - Behaves exactly like
assert_eq
but calls on theaprox_eq()
function as provided by theAproxEq
trait instead ofeq()
as provided byPartialEq
. - assert_
aprox_ ne - Behaves exactly like
assert_ne
but calls on theaprox_ne()
function as provided by theAproxEq
trait 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.