From cbff149e47a370762f6e0de6bb00d995c06c5909 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 8 Dec 2007 18:45:20 +0000 Subject: [PATCH] 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 --- bootstraptest/test_knownbug.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 39e6295f04..99a813af4f 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -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 +} +