summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-07-22 01:32:05 -0400
committerOri Bernstein <ori@eigenstate.org>2012-07-22 01:32:05 -0400
commit4b51d0d03ae39f5a48f45d0d408a42917f6f099f (patch)
treed4e0bece167d8a4f024aa4a3be6eee6b0112ec88 /test
parent6d2f54a54d3f8e58f1063374ef82d07f665f5562 (diff)
downloadmc-4b51d0d03ae39f5a48f45d0d408a42917f6f099f.tar.gz
Add tests for arity fixes.
Diffstat (limited to 'test')
-rw-r--r--test/arityhigh.myr7
-rw-r--r--test/aritylow.myr7
-rw-r--r--test/tests2
3 files changed, 16 insertions, 0 deletions
diff --git a/test/arityhigh.myr b/test/arityhigh.myr
new file mode 100644
index 0000000..17c91a3
--- /dev/null
+++ b/test/arityhigh.myr
@@ -0,0 +1,7 @@
+const f = {a:int
+
+}
+
+const main = {
+ -> f(1, 2, 3)
+}
diff --git a/test/aritylow.myr b/test/aritylow.myr
new file mode 100644
index 0000000..e519fe9
--- /dev/null
+++ b/test/aritylow.myr
@@ -0,0 +1,7 @@
+const f = {a:int, b:int, c:int
+
+}
+
+const main = {
+ -> f(1, 2)
+}
diff --git a/test/tests b/test/tests
index fc22bdd..592cd09 100644
--- a/test/tests
+++ b/test/tests
@@ -63,3 +63,5 @@ F union-extraarg
F union-missingarg
F match-badtypes
F generic-in-const
+F aritylow
+F arityhigh