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 | 3bfcd9a45272566f8d1541476fbd47a26c342ee7 (patch) | |
| tree | b16fd9b8b32bb44c8888258517b5b20e18bcb27a /test/ruby | |
| parent | bc86bad15202623c849a59baeee449f4b68ae19d (diff) | |
| download | ruby-3bfcd9a45272566f8d1541476fbd47a26c342ee7.tar.gz ruby-3bfcd9a45272566f8d1541476fbd47a26c342ee7.tar.xz ruby-3bfcd9a45272566f8d1541476fbd47a26c342ee7.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@17963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -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 29bc2672e..37278b192 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -1221,6 +1221,7 @@ class TestString < Test::Unit::TestCase assert_equal(S("124"), S("123").succ) assert_equal(S("1000"), S("999").succ) + assert_equal(S("2.000"), S("1.999").succ) assert_equal(S("No.10"), S("No.9").succ) assert_equal(S("2000aaa"), S("1999zzz").succ) |
