mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
avoid method redefinition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0fd75b46b7
commit
47b8a0e7e4
6 changed files with 7 additions and 7 deletions
|
|
@ -369,7 +369,7 @@ EOT
|
|||
assert(r =~ s, "#{encdump(r)} =~ #{encdump(s)}")
|
||||
end
|
||||
|
||||
def test_casecmp
|
||||
def test_casecmp2
|
||||
assert_equal(0, "\0A".force_encoding("UTF-16BE").casecmp("\0a".force_encoding("UTF-16BE")))
|
||||
assert_not_equal(0, "\0A".force_encoding("UTF-16LE").casecmp("\0a".force_encoding("UTF-16LE")))
|
||||
assert_not_equal(0, "A\0".force_encoding("UTF-16BE").casecmp("a\0".force_encoding("UTF-16BE")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue