diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-14 00:01:24 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-14 00:01:24 +0000 |
commit | d91c831e6cc67f31b45a02deb1739f539961bad1 (patch) | |
tree | 3ee80373cc5683057ef1dbd02dff89741418b248 /test/ruby/test_bignum.rb | |
parent | 55e100683588c21fe5bf46b9d73fb12465f1f4dd (diff) | |
download | ruby-d91c831e6cc67f31b45a02deb1739f539961bad1.tar.gz ruby-d91c831e6cc67f31b45a02deb1739f539961bad1.tar.xz ruby-d91c831e6cc67f31b45a02deb1739f539961bad1.zip |
test the actual value of (10**32768-1).to_s.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_bignum.rb')
-rw-r--r-- | test/ruby/test_bignum.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb index d7ace9d55..f6e9e6554 100644 --- a/test/ruby/test_bignum.rb +++ b/test/ruby/test_bignum.rb @@ -163,9 +163,7 @@ class TestBignum < Test::Unit::TestCase def test_to_s2 assert_raise(ArgumentError) { T31P.to_s(37) } - str = (10**32768-1).to_s - assert_equal("q", str.tr_s("9", "q")) - assert_equal(32768, str.size) + assert_equal("9" * 32768, (10**32768-1).to_s) assert_raise(RangeError) { Process.wait(1, T64P) } assert_equal("0", T_ZERO.to_s) assert_equal("1", T_ONE.to_s) |