diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/string.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/t/string.rb b/test/t/string.rb index e39eefb60..25c599ad4 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -365,6 +365,7 @@ assert('String#gsub', '15.2.10.5.18') do assert_equal('$$a$$', '##a##'.gsub('##'){|w| '$$' }, 'mruby/mruby#847 another case with block') assert_equal('A', 'a'.gsub('a', 'A')) assert_equal('A', 'a'.gsub('a'){|w| w.capitalize }) + assert_equal("<a><><>", 'a'.gsub('a', '<\0><\1><\2>')) assert_equal(".h.e.l.l.o.", "hello".gsub("", ".")) end |
