summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-08 17:41:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-08 17:41:47 +0000
commite0850807334995fdf6034566a0f30eff2953f7a0 (patch)
treee6cbdd1d5286c6364947b63382a5c0817fa4a1d4 /bootstraptest
parent2c955238011467c5c0f661608c434a641280501a (diff)
downloadruby-e0850807334995fdf6034566a0f30eff2953f7a0.tar.gz
ruby-e0850807334995fdf6034566a0f30eff2953f7a0.tar.xz
ruby-e0850807334995fdf6034566a0f30eff2953f7a0.zip
add a test for concatinating euc-jp and ascii-8bit string.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_knownbug.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 1eaff72f7..39e6295f0 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -47,3 +47,12 @@ assert_equal 'ok', %q{
:ng
end
}, '[ruby-dev:32452]'
+
+assert_equal 'ok', %q{
+ begin
+ "\xa1\xa1".force_encoding("euc-jp") + "\xa1".force_encoding("ascii-8bit")
+ :ng
+ rescue ArgumentError
+ :ok
+ end
+}