mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_bignum.rb (test_too_big_to_s): skips a test using too
large memory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a65cba488
commit
4e6e5a4316
1 changed files with 2 additions and 3 deletions
|
@ -379,9 +379,8 @@ class TestBignum < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_too_big_to_s
|
||||
i = 32
|
||||
while (big = 2**(i-1)-1).is_a?(Fixnum)
|
||||
i *= 2
|
||||
if (big = 2**31-1).is_a?(Fixnum)
|
||||
return
|
||||
end
|
||||
e = assert_raise(RangeError) {(1 << big).to_s}
|
||||
assert_match(/too big to convert/, e.message)
|
||||
|
|
Loading…
Reference in a new issue