From 5d6fa135b1eadbceac04e5456fabb7e53feedc10 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 2 Sep 2024 23:26:55 -0400 Subject: Add Text:find_all() --- test/text.tm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test') 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("") + = [] -- cgit v1.2.3