summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-15 00:59:03 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-15 00:59:03 -0800
commita25778a74151e4bbf3abdd0aab1c37af24e19d05 (patch)
treee5157e8f355b75ee350b9f3ca6efe0e50ed2e048
parenta80975b0c347277095c091650daaa8a18ad67702 (diff)
downloadmc-a25778a74151e4bbf3abdd0aab1c37af24e19d05.tar.gz
Add matchvoid test code.
-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