From d1833f39a01f83b54c85c8f04e378b8ec642d75a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 6 Sep 2021 23:42:42 +0200 Subject: [PATCH] :wite_check_mark: Add APMS testing --- tests/apms/apms1.gw | 7 +++++++ tests/apms/apms2.gw | 7 +++++++ tests/apms/apms3.gw | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 tests/apms/apms1.gw create mode 100644 tests/apms/apms2.gw create mode 100644 tests/apms/apms3.gw 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, _); -- 2.43.0