diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/function/regex/testscript | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/function/regex/testscript b/tests/function/regex/testscript index fc7fb92..95dfbb8 100644 --- a/tests/function/regex/testscript +++ b/tests/function/regex/testscript @@ -146,6 +146,15 @@ print $regex.replace_lines($v, '(.*)\.cxx', '\1.hxx') EOI + : no-copy + : + $* <<EOI >'foo.hxx' + v = "foo.cxx + bar.txt" + + print $regex.replace_lines($v, '(.*)\.cxx', '\1.hxx', format_no_copy) + EOI + : null-fmt : $* <<EOI >'bar.txt' @@ -173,6 +182,17 @@ bar.txt EOO + : no-copy + : + $* <<EOI >'bar.hxx' + v = "foo.cxx + bar.txt" + + print $regex.replace_lines($v, \ + '(.*)\.txt', '\1.hxx', \ + format_no_copy return_lines) + EOI + : null-fmt : $* <<EOI >'bar.txt' |