summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-07 01:42:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-07 01:42:16 +0000
commita42bb2a45697ec1f988b367ebbab22f62501c520 (patch)
treeb80db5042db9129d2597744099a8fe0cba19e270 /bootstraptest/test_knownbug.rb
parent92af9c0d5417f663be10b5ab49c0223bb018e333 (diff)
add test for [ruby-dev:32452].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index ae72e35b88..1eaff72f7c 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -34,3 +34,16 @@ assert_equal 'ok', %q{
result
end
}
+
+assert_equal 'ok', %q{
+ begin
+ if ("\xa1\xa2\xa1\xa3").force_encoding("euc-jp").split(//) ==
+ ["\xa1\xa2".force_encoding("euc-jp"), "\xa1\xa3".force_encoding("euc-jp")]
+ :ok
+ else
+ :ng
+ end
+ rescue
+ :ng
+ end
+}, '[ruby-dev:32452]'