From d6be80abd787efdb84d13dca0e0ca63fc6068f6b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 28 Jun 2022 07:46:19 +0200 Subject: [PATCH] :white_check_mark: Add test --- tests/decay_op/op.gw | 1 + tests/decay_op/op_sugar.gw | 1 + tests/match/string.gw | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 tests/match/string.gw diff --git a/tests/decay_op/op.gw b/tests/decay_op/op.gw index 11cc79c5..c64f4a52 100644 --- a/tests/decay_op/op.gw +++ b/tests/decay_op/op.gw @@ -1,3 +1,4 @@ +#! [contains] 3 funptr int test_t(int, int); fun void test(test_t t) { <<>>; diff --git a/tests/decay_op/op_sugar.gw b/tests/decay_op/op_sugar.gw index 71eaff21..14d2d91b 100644 --- a/tests/decay_op/op_sugar.gw +++ b/tests/decay_op/op_sugar.gw @@ -1,2 +1,3 @@ +#! [contains] 3 <<< (+)(1,2) >>>; <<< (1,2) => (+) >>>; diff --git a/tests/match/string.gw b/tests/match/string.gw new file mode 100644 index 00000000..c1425091 --- /dev/null +++ b/tests/match/string.gw @@ -0,0 +1,5 @@ +#! [contains] foo +match "foo" { + case "bar": <<< "bar" >>>; + case "foo": <<< "foo" >>>; +} -- 2.43.0