aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-02 23:13:02 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-02 23:13:02 -0400
commit6e4be93848ebea9f3fb921bed453f8ab74327c15 (patch)
tree822a33522ccb55c89f8d297ac5ed909169b4b872 /test
parent6d7e09bf1801c2fe183df17cc67017a6d3d8513b (diff)
Add Text:join() and tests
Diffstat (limited to 'test')
-rw-r--r--test/text.tm12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm
index 0955ffd2..4dd3531c 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -140,3 +140,15 @@ func main():
>> "abc":split("")
= ["a", "b", "c"]
+
+ >> ", ":join(["one", "two", "three"])
+ = "one, two, three"
+
+ >> "":join(["one", "two", "three"])
+ = "onetwothree"
+
+ >> "+":join(["one"])
+ = "one"
+
+ >> "+":join([:Text])
+ = ""