aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-13 09:20:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-13 09:20:13 +0000
commit7987f38467442964e6f33b913c1aa392769f844b (patch)
tree20c772c459ec5f800848d397bc144ee1d9a7db39 /bootstraptest
parent66bae8ad6df90c83b34908057afd991ffc9492c7 (diff)
downloadruby-7987f38467442964e6f33b913c1aa392769f844b.tar.gz
* string.c (rb_str_succ): should not enter infinite loop for
non-ASCII, non-alphanumeric character at the bottom. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_knownbug.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 5bc093ecb1..ad1ceafbed 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{