summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-30 16:42:15 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-30 16:42:15 +0000
commit10ae06cfd67627244a670599ba60c3e00ffc433b (patch)
tree65676b5ad70fe33ab97a7f87afb938211989cbad /test/ruby
parent48b88e2f09cf2a1bd062a48924e9aa3bfbb09d79 (diff)
downloadruby-10ae06cfd67627244a670599ba60c3e00ffc433b.tar.gz
ruby-10ae06cfd67627244a670599ba60c3e00ffc433b.tar.xz
ruby-10ae06cfd67627244a670599ba60c3e00ffc433b.zip
add a test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_utf16.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_utf16.rb b/test/ruby/test_utf16.rb
index 654818fbc..6e4fb4016 100644
--- a/test/ruby/test_utf16.rb
+++ b/test/ruby/test_utf16.rb
@@ -119,6 +119,12 @@ EOT
assert_nil(Encoding.compatible?(s1, s2), "Encoding.compatible?(#{encdump s1}, #{encdump s2})")
end
+ def test_casecmp
+ s1 = "aa".force_encoding("utf-16be")
+ s2 = "AA"
+ assert_not_equal(0, s1.casecmp(s2), "#{encdump s1}.casecmp(#{encdump s2})")
+ end
+
def test_end_with
s1 = "ab".force_encoding("utf-16be")
s2 = "b".force_encoding("utf-16be")