]> Nishi Git Mirror - gwion.git/commitdiff
:white_check_mark: Add test
authorfennecdjay <fennecdjay@gmail.com>
Tue, 28 Jun 2022 05:46:19 +0000 (07:46 +0200)
committerfennecdjay <fennecdjay@gmail.com>
Tue, 28 Jun 2022 05:46:19 +0000 (07:46 +0200)
tests/decay_op/op.gw
tests/decay_op/op_sugar.gw
tests/match/string.gw [new file with mode: 0644]

index 11cc79c59078dfcbd33cf69bec59cbc033b68ee7..c64f4a52527ef3eee1f7b684ec6dcb6632c84d1f 100644 (file)
@@ -1,3 +1,4 @@
+#! [contains] 3
 funptr int test_t(int, int);
 fun void test(test_t t) {
   <<<t(1,2)>>>;
index 71eaff21e0319c86d75d327a34b47b876d5b8f40..14d2d91bb5a89c1984460201d3ea7a57a5449a34 100644 (file)
@@ -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 (file)
index 0000000..c142509
--- /dev/null
@@ -0,0 +1,5 @@
+#! [contains] foo
+match "foo" {
+  case "bar": <<< "bar" >>>;
+  case "foo": <<< "foo" >>>;
+}