mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a1c42c017a
commit
1df7138a0d
1 changed files with 6 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue