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

Asserts that all elements in an array are greater than or equal a given value
Asserts that all elements in an array are less than or equal a given value
Asserts that all elements in a given array are finite
Asserts that two numbers are nearly equal
Asserts that two given arrays are almost equal
Asserts that no element of an array is NaN
Checks whether a given array contains any NaN elements
Returns true if and only if all elements of a given array are finite
Whether two floats are nearly equal (up to specified tolerance)
Checks whether two arrays are element-wise nearly equal