From da4b3d1c2cbcee672ec07760cf58b850213aa02a Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Thu, 25 Apr 2013 15:28:25 +0900 Subject: Move regression test as String#dump is not in ther core but the mrbgems. --- mrbgems/mruby-string-ext/test/string.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'mrbgems/mruby-string-ext/test/string.rb') diff --git a/mrbgems/mruby-string-ext/test/string.rb b/mrbgems/mruby-string-ext/test/string.rb index ce4bc7352..e20a2d3f3 100644 --- a/mrbgems/mruby-string-ext/test/string.rb +++ b/mrbgems/mruby-string-ext/test/string.rb @@ -14,6 +14,7 @@ assert('String#getbyte') do end assert('String#dump') do + ("\1" * 100).dump # should not raise an exception - regress #1210 "foo".dump == "\"foo\"" end -- cgit v1.2.3 From 433cb13e6db6c4f6761613bd0096f5d2f43f4626 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Thu, 25 Apr 2013 15:34:56 +0900 Subject: Add tests to make sure. As we do not use standard library for formatting. --- mrbgems/mruby-string-ext/test/string.rb | 1 + test/t/string.rb | 1 + 2 files changed, 2 insertions(+) (limited to 'mrbgems/mruby-string-ext/test/string.rb') 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 -- cgit v1.2.3