diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-12-15 00:59:03 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-12-15 00:59:03 -0800 |
commit | a25778a74151e4bbf3abdd0aab1c37af24e19d05 (patch) | |
tree | e5157e8f355b75ee350b9f3ca6efe0e50ed2e048 | |
parent | a80975b0c347277095c091650daaa8a18ad67702 (diff) | |
download | mc-a25778a74151e4bbf3abdd0aab1c37af24e19d05.tar.gz |
Add matchvoid test code.
-rw-r--r-- | test/matchvoid.myr | 8 | ||||
-rw-r--r-- | test/tests | 2 |
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") + ;; +} @@ -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 |