From: fennecdjay Date: Tue, 28 Jun 2022 05:46:19 +0000 (+0200) Subject: :white_check_mark: Add test X-Git-Tag: nightly~264^2~126 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d6be80abd787efdb84d13dca0e0ca63fc6068f6b;p=gwion.git :white_check_mark: Add test --- 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" >>>; +}