mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add succ tests from the succ document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b910bb7761
commit
dc980095ec
1 changed files with 7 additions and 0 deletions
|
@ -1055,6 +1055,13 @@ class TestString < Test::Unit::TestCase
|
|||
assert_equal(S("2000aaa"), S("1999zzz").succ)
|
||||
assert_equal(S("AAAAA000"), S("ZZZZ999").succ)
|
||||
assert_equal(S("*+"), S("**").succ)
|
||||
|
||||
assert_equal("abce", "abcd".succ)
|
||||
assert_equal("THX1139", "THX1138".succ)
|
||||
assert_equal("<<koalb>>", "<<koala>>".succ)
|
||||
assert_equal("2000aaa", "1999zzz".succ)
|
||||
assert_equal("AAAA0000", "ZZZ9999".succ)
|
||||
assert_equal("**+", "***".succ)
|
||||
end
|
||||
|
||||
def test_succ!
|
||||
|
|
Loading…
Reference in a new issue