]> Nishi Git Mirror - gwion.git/commitdiff
:wite_check_mark: Add APMS testing
authorJérémie Astor <fennecdjay@gmail.com>
Mon, 6 Sep 2021 21:42:42 +0000 (23:42 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Mon, 6 Sep 2021 21:42:42 +0000 (23:42 +0200)
tests/apms/apms1.gw [new file with mode: 0644]
tests/apms/apms2.gw [new file with mode: 0644]
tests/apms/apms3.gw [new file with mode: 0644]

diff --git a/tests/apms/apms1.gw b/tests/apms/apms1.gw
new file mode 100644 (file)
index 0000000..8cf6c5d
--- /dev/null
@@ -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 (file)
index 0000000..4bae828
--- /dev/null
@@ -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 (file)
index 0000000..128df47
--- /dev/null
@@ -0,0 +1,7 @@
+#! [contains] 42
+
+fun void test(int i, int j, int k) {
+  <<< i + j + k>>>;
+}
+
+(40, 1) => test(_, 1, _);