summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-07-11 10:52:19 -0400
committerOri Bernstein <orib@google.com>2012-07-11 10:52:19 -0400
commitb554cdfe59ba5631651182f05c19947a7b02d848 (patch)
tree77229ed3e5ebb9c91260f3aa4626b59737bfb4e8
parentbb41de486617929a449e5ece1018c4ef66802658 (diff)
downloadmc-b554cdfe59ba5631651182f05c19947a7b02d848.tar.gz
Add test for tuple.
-rw-r--r--test/tests1
-rw-r--r--test/tuple.myr6
2 files changed, 7 insertions, 0 deletions
diff --git a/test/tests b/test/tests
index 48e65be..1ac12da 100644
--- a/test/tests
+++ b/test/tests
@@ -51,6 +51,7 @@ B matchbind E 8
B arraylit E 3
B arraylit-ni E 2
B structlit E 42
+B tuple E 42
F declmismatch
F infermismatch
F flow
diff --git a/test/tuple.myr b/test/tuple.myr
new file mode 100644
index 0000000..cc85871
--- /dev/null
+++ b/test/tuple.myr
@@ -0,0 +1,6 @@
+const main = {
+ var v
+
+ v = (1, 2)
+ -> 42
+}