diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 22:57:49 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 22:57:49 -0400 |
| commit | 9214e621bf7fdaec29b872a5b0e757806fa61b40 (patch) | |
| tree | 78fbdb799582500aeadcaa5643e6a54455e9038c /test | |
| parent | 5c093e6a4ae7ede43ddd29611c8e524960cbd2d0 (diff) | |
Add Text:lines()
Diffstat (limited to 'test')
| -rw-r--r-- | test/text.tm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm index 2d386048..dc342659 100644 --- a/test/text.tm +++ b/test/text.tm @@ -119,3 +119,12 @@ func main(): >> c == Text.from_bytes(c:utf8_bytes()) = yes + + >> "one$(\n)two$(\n)three":lines() + = ["one", "two", "three"] + >> "one$(\n)two$(\n)three$(\n)":lines() + = ["one", "two", "three"] + >> "one$(\n)two$(\n)three$(\n\n)":lines() + = ["one", "two", "three", ""] + >> "one$(\r\n)two$(\r\n)three$(\r\n)":lines() + = ["one", "two", "three"] |
