mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
check the chracters in (10**32768-1).to_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5f0e8f582b
commit
ec1f2095a1
1 changed files with 3 additions and 1 deletions
|
@ -163,7 +163,9 @@ class TestBignum < Test::Unit::TestCase
|
|||
|
||||
def test_to_s2
|
||||
assert_raise(ArgumentError) { T31P.to_s(37) }
|
||||
assert_equal(32768, (10**32768-1).to_s.size)
|
||||
str = (10**32768-1).to_s
|
||||
assert_equal("q", str.tr_s("9", "q"))
|
||||
assert_equal(32768, str.size)
|
||||
assert_raise(RangeError) { Process.wait(1, T64P) }
|
||||
assert_equal("0", T_ZERO.to_s)
|
||||
assert_equal("1", T_ONE.to_s)
|
||||
|
|
Loading…
Reference in a new issue