diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:26:55 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:26:55 -0400 |
| commit | 5d6fa135b1eadbceac04e5456fabb7e53feedc10 (patch) | |
| tree | 4d84f88a0a23446f30740e756b6052b1674355ae /test | |
| parent | 9d2e9c02fe7eab797bc6131a5ba1129771a9f3a2 (diff) | |
Add Text:find_all()
Diffstat (limited to 'test')
| -rw-r--r-- | test/text.tm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm index cf084f8a..0dd5f2ec 100644 --- a/test/text.tm +++ b/test/text.tm @@ -155,3 +155,21 @@ func main(): >> "":split() = [] + + >> " one two three ":find_all("[..alpha]") + = ["one", "two", "three"] + + >> " one two three ":find_all("[..!space]") + = ["one", "two", "three"] + + >> " ":find_all("[..alpha]") + = [] + + >> " foo(baz(), 1) doop() ":find_all("[..id](?)") + = ["foo(baz(), 1)", "doop()"] + + >> "":find_all("") + = [] + + >> "Hello":find_all("") + = [] |
