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