diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-13 09:20:13 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-13 09:20:13 +0000 |
| commit | 3b0489b1a33573ceac8d81a728a56a97d06830eb (patch) | |
| tree | 20c772c459ec5f800848d397bc144ee1d9a7db39 /bootstraptest | |
| parent | 122ccdbf5e58d00ffe8cc8873566fc753a9ab15d (diff) | |
| download | ruby-3b0489b1a33573ceac8d81a728a56a97d06830eb.tar.gz ruby-3b0489b1a33573ceac8d81a728a56a97d06830eb.tar.xz ruby-3b0489b1a33573ceac8d81a728a56a97d06830eb.zip | |
* string.c (rb_str_succ): should not enter infinite loop for
non-ASCII, non-alphanumeric character at the bottom.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
| -rw-r--r-- | bootstraptest/test_knownbug.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 5bc093ecb..ad1ceafbe 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -127,9 +127,9 @@ assert_equal 'false', %q{ s.include?("\xb0\xa3".force_encoding("euc-jp")) } -assert_equal 'nil', %q{ +assert_equal 'ok', %q{ s = "\xa3\xb0\xa3\xb1\xa3\xb2\xa3\xb3\xa3\xb4".force_encoding("euc-jp") - s.index("\xb3\xa3".force_encoding("euc-jp")) + s.index("\xb3\xa3".force_encoding("euc-jp")) or :ok } assert_equal 'ok', %q{ |
