1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add a test for casecmp with sjis string.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-12-08 18:45:20 +00:00
parent cde5b2a9cf
commit cbff149e47

View file

@ -56,3 +56,10 @@ assert_equal 'ok', %q{
:ok
end
}
assert_equal 'ok', %q{
s1 = "\x81\x41".force_encoding("sjis")
s2 = "\x81\x61".force_encoding("sjis")
s1.casecmp(s2) ? :ng : :ok
}