Add tests to make sure. As we do not use standard library for formatting.

This commit is contained in:
Masaki Muranaka
2013-04-25 15:34:56 +09:00
parent da4b3d1c2c
commit 433cb13e6d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ end
assert('String#dump') do
("\1" * 100).dump # should not raise an exception - regress #1210
"\0".inspect == "\"\\000\"" and
"foo".dump == "\"foo\""
end
+1
View File
@@ -417,4 +417,5 @@ end
assert('String#inspect') do
("\1" * 100).inspect # should not raise an exception - regress #1210
"\0".inspect == "\"\\000\""
end