A you can see the assert_equal function reports that something equal is not equal. WTF? Is it some bug in TestUnit package, or my program just looks to work fine?
A you can see the assert_equal function reports that something equal is
not equal. WTF? Is it some bug in TestUnit package, or my program just
looks to work fine?
Welcome to floating point math. Equality is a no-no with floats. What you want is assert_in_delta.
···
On Oct 15, 2010, at 11:45 , felix.leg wrote:
A you can see the assert_equal function reports that something equal is not equal. WTF? Is it some bug in TestUnit package, or my program just looks to work fine?