From 7a0f1e2702e6c4525b75eb5803311feba2ebd03f Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 8 Mar 2008 09:05:34 +0000 Subject: * string.c (search_nonascii): Use VALUE instead of unsigned long because VALUE can be the fastest unsigned integer type. On LLP64 unsigned long isn't the fastest. * string.c (str_strlen): ditto. * string.c (str_utf8_nth): ditto. * string.c (count_utf8_lead_bytes_with_ulong): ditto. * string.c (count_utf8_lead_bytes_with_word): renamed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_m17n.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby/test_m17n.rb') diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 7a9e24f4a..dfb00ba65 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -819,6 +819,8 @@ class TestM17N < Test::Unit::TestCase assert_equal("\u{3044}", s[27]) assert_equal("\u{3046}", s[28]) assert_equal("\u{3048}", s[29]) + s = "abcdefghijklmnopqrstuvw\u{3042 3044 3046 3048 304A}" + assert_equal("\u{3044}", s[24]) end def test_str_aref_len -- cgit