a string may have a lot of non-printable chars.

This commit is contained in:
Tomoyuki Sahara
2013-04-25 12:05:16 +09:00
parent 62ca4c1738
commit b1114489ef
2 changed files with 12 additions and 21 deletions
+7
View File
@@ -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