mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_math.rb: use 64 bits in test_override_bignum_to_f
to ensure it's a bignum on all impls. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a147572a2
commit
073cbf20a0
1 changed files with 2 additions and 2 deletions
|
@ -304,8 +304,8 @@ class TestMath < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
check(Math.cos((1 << 62 << 1)._to_f), Math.cos(1 << 62))
|
||||
check(Math.log((1 << 62 << 1)._to_f), Math.log(1 << 62))
|
||||
check(Math.cos((1 << 64 << 1)._to_f), Math.cos(1 << 64))
|
||||
check(Math.log((1 << 64 << 1)._to_f), Math.log(1 << 64))
|
||||
ensure
|
||||
Bignum.class_eval { undef to_f; alias to_f _to_f; undef _to_f }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue