[][src]Crate unit_test_utils

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_is_finite_array

Asserts that all elements in a given array are finite

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

is_finite_array

Returns true if and only if all elements of a given array are finite

nearly_equal

Whether two floats are nearly equal (up to specified tolerance)

nearly_equal_array

Checks whether two arrays are element-wise nearly equal