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.