summaryrefslogtreecommitdiff
path: root/test/strtab.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-10-09 16:20:19 -0400
committerOri Bernstein <ori@eigenstate.org>2013-10-09 16:20:19 -0400
commitaa513a6a6b3ae462bbc1fc8c868476e0dd8baa3c (patch)
treef3ef32543fa41d9adfe83a26e733e604352b4eaa /test/strtab.myr
parentc9d679c7193c20290ecc420a702f2848871c060f (diff)
downloadmc-aa513a6a6b3ae462bbc1fc8c868476e0dd8baa3c.tar.gz
Add string table test
Diffstat (limited to 'test/strtab.myr')
-rw-r--r--test/strtab.myr14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/strtab.myr b/test/strtab.myr
new file mode 100644
index 0000000..347cc6d
--- /dev/null
+++ b/test/strtab.myr
@@ -0,0 +1,14 @@
+use std
+
+const strtab = [
+ "foo",
+ "bar",
+ "baz",
+ "quux"
+]
+
+const main = {
+ for i = 0; i < strtab.len; i++
+ std.put("%i: %s\n", i, strtab[i])
+ ;;
+}