aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/text.tm6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm
index 950805a9..e3848a08 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -236,3 +236,9 @@ func main():
>> "<tag>":replace_all({$/</:"&lt;", $/>/:"&gt;"})
= "&lt;tag&gt;"
+ >> " BAD(x, fn(y), BAD(z), w) ":replace($/BAD(?)/, "good(\1)", recursive=yes)
+ = " good(x, fn(y), good(z), w) "
+
+ >> " BAD(x, fn(y), BAD(z), w) ":replace($/BAD(?)/, "good(\1)", recursive=no)
+ = " good(x, fn(y), BAD(z), w) "
+