summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_m17n.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-08 09:05:34 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-08 09:05:34 +0000
commit7a0f1e2702e6c4525b75eb5803311feba2ebd03f (patch)
treee3f298d69bcd16c7359fc600322975f8c31c85e2 /test/ruby/test_m17n.rb
parentc4bae0ca5c15a6ee68ab9377c84c6c81a4f97c57 (diff)
downloadruby-7a0f1e2702e6c4525b75eb5803311feba2ebd03f.tar.gz
ruby-7a0f1e2702e6c4525b75eb5803311feba2ebd03f.tar.xz
ruby-7a0f1e2702e6c4525b75eb5803311feba2ebd03f.zip
* 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
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r--test/ruby/test_m17n.rb2
1 files changed, 2 insertions, 0 deletions
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