Skip to main content

assert_close

Function assert_close 

Source
pub fn assert_close<T: Float>(actual: T, expected: T, rtol: T)
Expand description

Assert that the actual value is within the relative tolerance of the expected value.

Panics if the assertion is failed.