summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/matchvoid.myr8
-rw-r--r--test/tests2
2 files changed, 9 insertions, 1 deletions
diff --git a/test/matchvoid.myr b/test/matchvoid.myr
new file mode 100644
index 0000000..86a5b1b
--- /dev/null
+++ b/test/matchvoid.myr
@@ -0,0 +1,8 @@
+use std
+
+const main = {
+ match `std.Some void
+ | `std.Some void: std.put("ok\n")
+ | `std.None: std.put("nope\n")
+ ;;
+}
diff --git a/test/tests b/test/tests
index 192b67d..eb38ffc 100644
--- a/test/tests
+++ b/test/tests
@@ -106,7 +106,7 @@ B matchtup E 42
B matchstruct E 42
B matcharray E 42
B matchargunion E 69
-B matchvoid E 'ok'
+B matchvoid P 'ok'
B matchexhaust P worked
B matchargstr C
B matchunion_sl P foo