Skip to content

Commit

Permalink
* test/ruby/test_bignum.rb (test_too_big_to_s): skips a test using too
Browse files Browse the repository at this point in the history
  large memory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Feb 29, 2008
1 parent 4a65cba commit 4e6e5a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/ruby/test_bignum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,8 @@ def test_interrupt
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)
Expand Down

0 comments on commit 4e6e5a4

Please sign in to comment.