diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 00:34:27 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 00:34:27 -0400 |
| commit | df844946f7d45fa39acf040eb8922ab658f9f5dd (patch) | |
| tree | f5e3f270d3cd2f855ee1d9fc31f709acee4c0be4 /test/text.tm | |
| parent | ec688c11bb92a10891cad98de7470a2773dfd167 (diff) | |
Add Text:matches() for convenience and performance
Diffstat (limited to 'test/text.tm')
| -rw-r--r-- | test/text.tm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm index e3848a08..af03c3c7 100644 --- a/test/text.tm +++ b/test/text.tm @@ -242,3 +242,11 @@ func main(): >> " BAD(x, fn(y), BAD(z), w) ":replace($/BAD(?)/, "good(\1)", recursive=no) = " good(x, fn(y), BAD(z), w) " + >> "Hello":matches($/{id}/) + = yes + >> "Hello":matches($/{lower}/) + = no + >> "Hello":matches($/{upper}/) + = no + >> "Hello...":matches($/{id}/) + = no |
