Function assert_approx_eq_list

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

Assert that two arrays are approximately equal (within eps) and return an error if they are not.

assert_approx_eq([2.0, 2.0], [2.0, 2.000000000000000001], 1e-10);