Module assert_functions
Source - assert
- Assert that a statement is true and throw an error if it is not.
- assert_approx_eq
- Assert that two floats are approximately equal (within
eps
) and return an error if they
are not. - assert_approx_eq_list
- Assert that two arrays are approximately equal (within
eps
) and return an error if they
are not. - assert_approx_eq_list_with_default
- Assert that two arrays are approximately equal and return an error if they
are not. Use the default tolerance of 1e-10 for the comparison.
- assert_approx_eq_with_default
- Assert that two floats are approximately equal and return an error if they
are not. Use the default tolerance of 1e-10 for the comparison.
- assert_eq
- Assert that two arguments are equal and throw an error if they are not.
- assert_ne
- Assert that two arguments are unequal and throw an error if they are not.