From af97057c4d0f894c7cbef53f8e812898e6f407f0 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 1 May 2016 16:28:18 +0000 Subject: * test/ruby/test_numeric.rb (test_step): Use Integer::FIXNUM_MAX. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_numeric.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb index 7d53aaaa8e..0463462d1a 100644 --- a/test/ruby/test_numeric.rb +++ b/test/ruby/test_numeric.rb @@ -252,8 +252,7 @@ class TestNumeric < Test::Unit::TestCase 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) { } } -- cgit v1.2.3