I have a minitest test that is asserting if a decimal is the same. Wondering why this
My assert code:
assert_equal -9.04, elts[2].change.round(2)
Failure:
Failure: LeaveTypePolicyTest#test_case_12 [/usr/src/app/test/models/leave_type_policy_test.rb:1007] Minitest::Assertion: Expected: -9.04 Actual: -0.904e1
Anyone experienced this? and perhaps why its failing? I have many many tests doing similar assertions, but only this for some reason fails.