Function assert_approx_eq_list_with_default

Source
pub fn assert_approx_eq_list_with_default(
    lhs: Array,
    rhs: Array,
) -> Result<bool, Box<EvalAltResult>>
Expand description

Assert that two arrays are approximately equal and return an error if they are not. Use the default tolerance of 1e-10 for the comparison.

assert_approx_eq([2.0, 2.0], [2.0, 2.000000000000000001]);