Function tmac::assert_float_ne_fn[][src]

pub fn assert_float_ne_fn<T: Float + Debug>(a: T, b: T)
Expand description

Asserts the inequality of two floats with regard to the float types epsilon.

assert_float_ne(0.2f64 * 3.0, 0.600000000000001);
assert_float_ne(0.3f32 * 3.0, 0.9000002);