summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-01-16 20:53:56 -0800
committerOri Bernstein <ori@eigenstate.org>2015-01-16 20:53:56 -0800
commit020f025305971f5fed1deed8cc20afe7f424fc11 (patch)
treeb0b5d14a2e58a5c9607175f5a2d92580d02006ab /test
parent3ca4aafa0234e3c056d128767f384c602462170b (diff)
downloadmc-020f025305971f5fed1deed8cc20afe7f424fc11.tar.gz
Add missing test.
Diffstat (limited to 'test')
-rw-r--r--test/matchnsconst.myr13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/matchnsconst.myr b/test/matchnsconst.myr
new file mode 100644
index 0000000..8a61291
--- /dev/null
+++ b/test/matchnsconst.myr
@@ -0,0 +1,13 @@
+use std
+
+const main = {
+ var v
+
+ v = std.Badchar
+ match v
+ | std.Maxcharval: std.put("matched maxcharval\n")
+ | std.Badchar: std.put("matched badchar\n")
+ | 'c': std.put("matched 'c'\n")
+ | _: std.die("Impossible match failure in pattern\n")
+ ;;
+}