mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress warning: Bignum out of Float range
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
172d8f9b6e
commit
a3286ba320
1 changed files with 6 additions and 4 deletions
|
@ -155,10 +155,12 @@ class TestFloat < Test::Unit::TestCase
|
|||
assert_equal(31.0*2**1019, Float("0x0."+("0"*600)+"1fp3427"))
|
||||
assert_equal(-31.0*2**1019, Float("-0x0."+("0"*268)+"1fp2099"))
|
||||
assert_equal(-31.0*2**1019, Float("-0x0."+("0"*600)+"1fp3427"))
|
||||
assert_equal(31.0*2**-1027, Float("0x1f"+("0"*268)+".0p-2099"))
|
||||
assert_equal(31.0*2**-1027, Float("0x1f"+("0"*600)+".0p-3427"))
|
||||
assert_equal(-31.0*2**-1027, Float("-0x1f"+("0"*268)+".0p-2099"))
|
||||
assert_equal(-31.0*2**-1027, Float("-0x1f"+("0"*600)+".0p-3427"))
|
||||
suppress_warning do
|
||||
assert_equal(31.0*2**-1027, Float("0x1f"+("0"*268)+".0p-2099"))
|
||||
assert_equal(31.0*2**-1027, Float("0x1f"+("0"*600)+".0p-3427"))
|
||||
assert_equal(-31.0*2**-1027, Float("-0x1f"+("0"*268)+".0p-2099"))
|
||||
assert_equal(-31.0*2**-1027, Float("-0x1f"+("0"*600)+".0p-3427"))
|
||||
end
|
||||
end
|
||||
|
||||
def test_divmod
|
||||
|
|
Loading…
Reference in a new issue