From 3b0489b1a33573ceac8d81a728a56a97d06830eb Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 13 Dec 2007 09:20:13 +0000 Subject: * 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 --- bootstraptest/test_knownbug.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstraptest/test_knownbug.rb') 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{ -- cgit