Module test_utils

Module test_utils 

Source
Expand description

Utility code for writing tests.

Functionsยง

almost_eq
Check two floating point values are approximately equal
almost_eq_delta
Check two floating point values are approximately equal using some given delta (a fraction of the inputs)
assert_almost_eq
Assert two floating point values are approximately equal
assert_almost_eq_delta
Assert two floating point values are approximately equal using some given delta (a fraction of the inputs)