summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-17 09:08:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-17 09:08:27 +0000
commit92b96f9a40c3eafec5251e4ec159a040366fbae9 (patch)
tree228cf716e2da8eaa5b49654065a51923dd0207cc /bootstraptest
parent3e5f21ca3af61ebd7df4ed889f6cf8c0aaf40b97 (diff)
downloadruby-92b96f9a40c3eafec5251e4ec159a040366fbae9.tar.gz
ruby-92b96f9a40c3eafec5251e4ec159a040366fbae9.tar.xz
ruby-92b96f9a40c3eafec5251e4ec159a040366fbae9.zip
* string.c (rb_str_index): check if substring is broken.
* string.c (rb_str_rindex): ditto. * string.c (rb_str_succ): should carry over. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_knownbug.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 942615849..b62fd1f6c 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -219,12 +219,12 @@ assert_equal 'false', %q{
"\xa1\xa2\xa3\xa4".force_encoding("euc-jp").include?("\xa3".force_encoding("euc-jp"))
}
-assert_equal 'nil', %q{
- "\xa1\xa2\xa3\xa4".force_encoding("euc-jp").index("\xa3".force_encoding("euc-jp"))
+assert_equal 'ok', %q{
+ "\xa1\xa2\xa3\xa4".force_encoding("euc-jp").index("\xa3".force_encoding("euc-jp")) or :ok
}
-assert_equal 'nil', %q{
- "\xa1\xa2\xa3\xa4".force_encoding("euc-jp").rindex("\xa3".force_encoding("euc-jp"))
+assert_equal 'ok', %q{
+ "\xa1\xa2\xa3\xa4".force_encoding("euc-jp").rindex("\xa3".force_encoding("euc-jp")) or :ok
}
assert_equal 'false', %q{