summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-11-21 00:04:57 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2012-11-21 00:04:57 -0800
commit276b77021fb099b1b767d5a606ef709fafd7421b (patch)
tree43a2ba548b78615518533487b82586f365350087
parentae6a7e5aae115a417fd764fd3160b7df48df9631 (diff)
parenta9c8ae49ebe1c54b93dcffa46370d4099e0c7ea3 (diff)
downloadmruby-276b77021fb099b1b767d5a606ef709fafd7421b.tar.gz
mruby-276b77021fb099b1b767d5a606ef709fafd7421b.zip
Merge pull request #564 from xxuejie/master
Use check_float to test equality of float values in Math#round test
-rw-r--r--test/t/float.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/t/float.rb b/test/t/float.rb
index e2c139c03..abb5cf2e7 100644
--- a/test/t/float.rb
+++ b/test/t/float.rb
@@ -105,7 +105,7 @@ assert('Float#round', '15.2.9.3.12') do
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