check equals a and b approx with epsilon
first value
second value
numeric epsilon
assert( eq_approx( [1.1f,2,3], [1,2,3], 0.2 ) ); assert( !eq_approx( [1.1f,2,3], [1,2,3], 0.1 ) ); assert( !eq_approx( [1.0f,2], [1,2,3], 1 ) ); static assert( !__traits(compiles, eq_approx( [[1,2]], [1,2] )) );
See Implementation
check equals a and b approx with epsilon