[前][次][番号順一覧][スレッド一覧]

ruby-changes:41828

From: headius <ko1@a...>
Date: Tue, 23 Feb 2016 08:32:23 +0900 (JST)
Subject: [ruby-changes:41828] headius:r53902 (trunk): * test/ruby/test_math.rb: use 64 bits in test_override_bignum_to_f

headius	2016-02-23 08:23:10 +0900 (Tue, 23 Feb 2016)

  New Revision: 53902

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53902

  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:
    trunk/test/ruby/test_math.rb
Index: test/ruby/test_math.rb
===================================================================
--- test/ruby/test_math.rb	(revision 53901)
+++ test/ruby/test_math.rb	(revision 53902)
@@ -304,8 +304,8 @@ class TestMath < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/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 { undef to_f; alias to_f _to_f; undef _to_f }
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]