summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-08 18:45:20 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-08 18:45:20 +0000
commitcbff149e47a370762f6e0de6bb00d995c06c5909 (patch)
treec3200d52de68c27bcef3935860a05bb0666ff569 /bootstraptest/test_knownbug.rb
parentcde5b2a9cf6934bd5fe006be31d6a09901609c13 (diff)
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
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb7
1 files changed, 7 insertions, 0 deletions
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
+}
+