diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-08 16:38:40 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-08 16:38:40 +0000 |
| commit | f5113b5731a6ba5d595071a2b5fa00831a1bcb33 (patch) | |
| tree | 667a10b67f2046f72fdb01583facf2a6391fb9da /test/ruby/test_string.rb | |
| parent | f04db2b4cffc548a1e3b0a478ae75b12b24308b3 (diff) | |
* string.c (rb_str_succ): alphabets or numerics mutually enclosing
non-alphanumeric characters can carry up. e.g., "1.999".succ should
be "2.000".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_string.rb')
| -rw-r--r-- | test/ruby/test_string.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 539a5a4623..6bac7f1fee 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -25,6 +25,7 @@ class TestString < Test::Unit::TestCase assert_equal("124", "123".succ) assert_equal("1000", "999".succ) + assert_equal("2.000", "1.999".succ) assert_equal("No.10", "No.9".succ) assert_equal("2000aaa", "1999zzz".succ) |
