ruby-changes:42802
From: akr <ko1@a...>
Date: Mon, 2 May 2016 00:31:42 +0900 (JST)
Subject: [ruby-changes:42802] akr:r54876 (trunk): * test/ruby/test_numeric.rb (test_step): Use Integer::FIXNUM_MAX.
akr 2016-05-02 01:28:18 +0900 (Mon, 02 May 2016) New Revision: 54876 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54876 Log: * test/ruby/test_numeric.rb (test_step): Use Integer::FIXNUM_MAX. Modified files: trunk/ChangeLog trunk/test/ruby/test_numeric.rb Index: test/ruby/test_numeric.rb =================================================================== --- test/ruby/test_numeric.rb (revision 54875) +++ test/ruby/test_numeric.rb (revision 54876) @@ -252,8 +252,7 @@ class TestNumeric < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_numeric.rb#L252 end def test_step - i, bignum = 32, 1 << 30 - bignum <<= (i <<= 1) - 32 until bignum.is_a?(Bignum) + bignum = Integer::FIXNUM_MAX + 1 assert_raise(ArgumentError) { 1.step(10, 1, 0) { } } assert_raise(ArgumentError) { 1.step(10, 1, 0).size } assert_raise(ArgumentError) { 1.step(10, 0) { } } Index: ChangeLog =================================================================== --- ChangeLog (revision 54875) +++ ChangeLog (revision 54876) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon May 2 01:27:59 2016 Tanaka Akira <akr@f...> + + * test/ruby/test_numeric.rb (test_step): Use Integer::FIXNUM_MAX. + Mon May 2 01:15:01 2016 Tanaka Akira <akr@f...> * test/ruby/test_module.rb (test_name): Use Integer instead of Fixnum. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/