summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-04-24 21:55:11 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-04-24 21:55:11 -0700
commite70b2721a627dee19349431619ec13693095c7e0 (patch)
treea590ebd658921df124cdcd671602f14f7ad71fa6 /test
parent62ca4c17385e0018767b20badcb92a9002166ef0 (diff)
parentb1114489ef84b644c2524cd8bc5c9db67185a7ee (diff)
downloadmruby-e70b2721a627dee19349431619ec13693095c7e0.tar.gz
mruby-e70b2721a627dee19349431619ec13693095c7e0.zip
Merge pull request #1210 from iij/pr-inspect-many-non-printables
String#inspec & String#dump may raise an "arena overflow" error
Diffstat (limited to 'test')
-rw-r--r--test/t/string.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/t/string.rb b/test/t/string.rb
index 5f5f664cf..945ef890c 100644
--- a/test/t/string.rb
+++ b/test/t/string.rb
@@ -415,3 +415,10 @@ assert('String#each_byte') do
bytes1 == bytes2
end
+assert('String#dump') do
+ ("\1" * 100).dump # should not raise an exception - regress #1210
+end
+
+assert('String#inspect') do
+ ("\1" * 100).inspect # should not raise an exception - regress #1210
+end