From 98011df3c3bb54a3d64d98eaac9c3665ca5f9615 Mon Sep 17 00:00:00 2001 From: headius Date: Mon, 22 Feb 2016 22:44:31 +0000 Subject: * 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/branches/ruby_2_3@53898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_math.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_math.rb b/test/ruby/test_math.rb index 6ab48fc7c8..ab55df8e30 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 { alias to_f _to_f } end -- cgit v1.2.3