summaryrefslogtreecommitdiff
path: root/test/strjoin.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-12-27 17:36:43 -0500
committerOri Bernstein <ori@eigenstate.org>2013-12-27 17:36:43 -0500
commitafc7520151f5ea1c30be31e9eb85e58dd863d632 (patch)
treee93cc9cfc3320c2e156e5b0535f34017428f2c22 /test/strjoin.myr
parentd752a67b5b88c1e6ae9e632a960dc9ef23827d44 (diff)
downloadmc-afc7520151f5ea1c30be31e9eb85e58dd863d632.tar.gz
Added 'strjoin' to libstd
Diffstat (limited to 'test/strjoin.myr')
-rw-r--r--test/strjoin.myr12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/strjoin.myr b/test/strjoin.myr
new file mode 100644
index 0000000..452b75a
--- /dev/null
+++ b/test/strjoin.myr
@@ -0,0 +1,12 @@
+use std
+
+const main = {
+ const strings = [
+ "x",
+ "y",
+ "z",
+ "w"
+ ]
+ std.put("%s\n", std.strcat("foo;", "bar"))
+ std.put("%s\n", std.strjoin(strings[:]))
+}