diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-01 11:32:17 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-01 11:32:17 +0000 |
| commit | 355aa3a5569070e3b27aca7266dec382345188aa (patch) | |
| tree | 18dbacb8a325d45c9faf7fb9fdca29315d9945fe /test/ruby/test_float.rb | |
| parent | 979f5771f180384e7986a029d254a1200c62b622 (diff) | |
| download | ruby-355aa3a5569070e3b27aca7266dec382345188aa.tar.gz ruby-355aa3a5569070e3b27aca7266dec382345188aa.tar.xz ruby-355aa3a5569070e3b27aca7266dec382345188aa.zip | |
add test_symmetry_bignum.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_float.rb')
| -rw-r--r-- | test/ruby/test_float.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index c18700a57..568c56181 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 |
