diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-29 17:44:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-29 17:44:15 +0000 |
commit | 9343634c6dde6787b549597b18bb2ee796e43924 (patch) | |
tree | cc3743eebdbf44d2f8ce63e50d2ba232b78f4999 | |
parent | e811e5e4729b46b1c5522977437e25901852580f (diff) | |
download | ruby-9343634c6dde6787b549597b18bb2ee796e43924.tar.gz |
* 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/branches/ruby_1_8@15647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_bignum.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb index bfc47784f0..99c5952173 100644 --- a/test/ruby/test_bignum.rb +++ b/test/ruby/test_bignum.rb @@ -97,9 +97,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) |