From b1114489ef84b644c2524cd8bc5c9db67185a7ee Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Thu, 25 Apr 2013 12:05:16 +0900 Subject: a string may have a lot of non-printable chars. --- test/t/string.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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 -- cgit v1.2.3