shithub: mc

Download patch

ref: 020f025305971f5fed1deed8cc20afe7f424fc11
parent: 3ca4aafa0234e3c056d128767f384c602462170b
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jan 16 15:53:56 EST 2015

Add missing test.

--- /dev/null
+++ b/test/matchnsconst.myr
@@ -1,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")
+	;;
+}