Skip to main content

Module testing

Module testing 

Source
Expand description

Common test related helper functions.

Constants§

DEFAULT_ABSOLUTE_TOLERANCE
Absolute tolerance used by approx_equal.
DEFAULT_RELATIVE_TOLERANCE
Relative tolerance used by approx_equal.

Functions§

approx_equal
Checks whether two floating-point numbers agree to the default tolerances.
approx_equal_with
Checks whether two floating-point numbers agree to the given tolerances.
assert_approx_equal
Asserts that two floating-point numbers agree to the default tolerances.