diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_numeric.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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) { } } |