diff options
author | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-22 23:23:10 +0000 |
---|---|---|
committer | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-22 23:23:10 +0000 |
commit | 9efd4b519d14c096640901684fcc1d160610c0f2 (patch) | |
tree | 0322654f1de597cc94024289a8e51f7137c79cab /test/ruby/test_math.rb | |
parent | 415ddc9bdb25aa545be01d3b8c1e892f16203095 (diff) | |
download | ruby-9efd4b519d14c096640901684fcc1d160610c0f2.tar.gz |
* 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
Diffstat (limited to 'test/ruby/test_math.rb')
-rw-r--r-- | test/ruby/test_math.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_math.rb b/test/ruby/test_math.rb index 551d13e31d..e547cb77ec 100644 --- a/test/ruby/test_math.rb +++ b/test/ruby/test_math.rb @@ -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 |