mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add test_symmetry_bignum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b37f4923e5
commit
ad47c057c9
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue