diff options
| -rw-r--r-- | mrbgems/mruby-string-ext/test/string.rb | 1 | ||||
| -rw-r--r-- | test/t/string.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-string-ext/test/string.rb b/mrbgems/mruby-string-ext/test/string.rb index e20a2d3f3..2bb32cef3 100644 --- a/mrbgems/mruby-string-ext/test/string.rb +++ b/mrbgems/mruby-string-ext/test/string.rb @@ -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 diff --git a/test/t/string.rb b/test/t/string.rb index 1e0d44f67..2d0804519 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -417,4 +417,5 @@ end assert('String#inspect') do ("\1" * 100).inspect # should not raise an exception - regress #1210 + "\0".inspect == "\"\\000\"" end |
