aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-04 21:02:37 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-04 21:02:37 -0400
commit00543b4e876cf069d5be22c1f06427a4c8d5bed9 (patch)
treec77a2684fff4ce800939f833ff5d727e73607b26 /test
parent93140c2896004f6ab5536e64b6970e48bbc92336 (diff)
Add Text.map(pat, fn)
Diffstat (limited to 'test')
-rw-r--r--test/text.tm3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm
index af03c3c7..74a53413 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -250,3 +250,6 @@ func main():
= no
>> "Hello...":matches($/{id}/)
= no
+
+ >> "hello world":map($/world/, Text.upper)
+ = "hello WORLD"