From: Jérémie Astor <fennecdjay@gmail.com>
Date: Mon, 6 Sep 2021 21:42:42 +0000 (+0200)
Subject: :wite_check_mark: Add APMS testing
X-Git-Tag: nightly~478^2
X-Git-Url: http://10.11.0.4:5575/?a=commitdiff_plain;h=d1833f39a01f83b54c85c8f04e378b8ec642d75a;p=gwion.git

:wite_check_mark: Add APMS testing
---

diff --git a/tests/apms/apms1.gw b/tests/apms/apms1.gw
new file mode 100644
index 00000000..8cf6c5d8
--- /dev/null
+++ b/tests/apms/apms1.gw
@@ -0,0 +1,7 @@
+#! [contains] 42
+
+fun void test(int i, int j) {
+  <<< i + j >>>;
+}
+
+40 => test(_, 2);
diff --git a/tests/apms/apms2.gw b/tests/apms/apms2.gw
new file mode 100644
index 00000000..4bae828f
--- /dev/null
+++ b/tests/apms/apms2.gw
@@ -0,0 +1,7 @@
+#! [contains] 42
+
+fun void test(int i, int j) {
+  <<< i + j >>>;
+}
+
+2 => test(40, _);
diff --git a/tests/apms/apms3.gw b/tests/apms/apms3.gw
new file mode 100644
index 00000000..128df478
--- /dev/null
+++ b/tests/apms/apms3.gw
@@ -0,0 +1,7 @@
+#! [contains] 42
+
+fun void test(int i, int j, int k) {
+  <<< i + j + k>>>;
+}
+
+(40, 1) => test(_, 1, _);