ruby-changes:41824
From: headius <ko1@a...>
Date: Tue, 23 Feb 2016 07:43:55 +0900 (JST)
Subject: [ruby-changes:41824] headius:r53898 (ruby_2_3): * test/ruby/test_math.rb: use 64 bits in test_override_bignum_to_f
headius 2016-02-23 07:44:31 +0900 (Tue, 23 Feb 2016) New Revision: 53898 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53898 Log: * test/ruby/test_math.rb: use 64 bits in test_override_bignum_to_f to ensure it's a bignum on all impls. Modified files: branches/ruby_2_3/test/ruby/test_math.rb Index: ruby_2_3/test/ruby/test_math.rb =================================================================== --- ruby_2_3/test/ruby/test_math.rb (revision 53897) +++ ruby_2_3/test/ruby/test_math.rb (revision 53898) @@ -304,8 +304,8 @@ class TestMath < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/ruby/test_math.rb#L304 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/