From f8bcdddce83d538e292192f35200e8af982d08ee Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 8 Dec 2007 18:45:20 +0000 Subject: add a test for casecmp with sjis string. git-svn-id: http://svn.ruby-lang.org/repos/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 39e6295f0..99a813af4 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 +} + -- cgit