Crate unit_test_utils

Source
Expand description

Collection of utilities for unit tests

This crate offers tools for unit tests, especially for projects involving numerical methods

Functionsยง

assert_all_ge
Asserts that all elements in an array are greater than or equal a given value
assert_all_le
Asserts that all elements in an array are less than or equal a given value
assert_nearly_equal
Asserts that two numbers are nearly equal
assert_nearly_equal_array
Asserts that two given arrays are almost equal
assert_none_is_nan
Asserts that no element of an array is NaN
is_any_nan
Checks whether a given array contains any NaN elements
nearly_equal
Whether two floats are nearly equal (up to specified tolerance)
nearly_equal_array
Checks whether two arrays are element-wise nearly equal