Assertion functions
The Asserts Functions module in Nelson provides tools for validating program behavior and verifying conditions during development or testing.
These functions help ensure that computations and logical conditions meet expected criteria, improving code reliability and catching errors early.
Functions
assert - Check that condition is true.
assert_checkerror - Check that a command raises the expected error.
assert_isapprox - Check that computed and expected values are approximately equal.
assert_isequal - Check that computed and expected values are equal.
assert_isfalse - Check that condition is false.
assert_istrue - Check that condition is true.
Last updated
Was this helpful?