Is there in Ruby some functionality/syntax to compare two floats with delta? Something similar to *assert_in_delta(expected_float, actual_float, delta)* from test/unit but returning Boolean?
That's pretty much what assert_in_delta checks, aside from some extra assertions to make sure the arguments can be converted to floats and that delta is not negative.
Firas Assaad
2008-10-27 08:16:07