summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_float.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index c18700a575..568c56181a 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -45,4 +45,10 @@ class TestFloat < Test::Unit::TestCase
f = 3.7517675036461267e+17
assert_equal(f, sprintf("%.16e", f).to_f)
end
+
+ def test_symmetry_bignum # [ruby-bugs-ja:118]
+ a = 100000000000000000000000
+ b = 100000000000000000000000.0
+ assert_equal(a == b, b == a)
+ end
end