Skip to content

Commit

Permalink
Use check_float when testing equality for float values
Browse files Browse the repository at this point in the history
  • Loading branch information
xxuejie committed Nov 21, 2012
1 parent 8894cbe commit a9c8ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/t/float.rb
Expand Up @@ -105,7 +105,7 @@
i = 3.423456789.round(3)

a == 3 and b == 4 and c == 3 and d == -3 and e == -4 and
f == 12350 and g == 3 and h == 3.4 and i == 3.423
f == 12350 and g == 3 and check_float(h, 3.4) and check_float(i, 3.423)
end

assert('Float#to_f', '15.2.9.3.13') do
Expand Down

0 comments on commit a9c8ae4

Please sign in to comment.