summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2013-04-25 12:05:16 +0900
committerTomoyuki Sahara <[email protected]>2013-04-25 12:14:18 +0900
commitb1114489ef84b644c2524cd8bc5c9db67185a7ee (patch)
treea590ebd658921df124cdcd671602f14f7ad71fa6 /test
parent62ca4c17385e0018767b20badcb92a9002166ef0 (diff)
downloadmruby-b1114489ef84b644c2524cd8bc5c9db67185a7ee.tar.gz
mruby-b1114489ef84b644c2524cd8bc5c9db67185a7ee.zip
a string may have a lot of non-printable chars.
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