summaryrefslogtreecommitdiff
path: root/test/match-badtypes.myr
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2013-01-16 15:46:24 -0500
committerOri Bernstein <orib@google.com>2013-01-16 15:46:24 -0500
commit4d3579d9e03400cc44fca47638454207c86b9fd2 (patch)
tree70a7e54220da0b9e71e63afc0108a00c0db7b58c /test/match-badtypes.myr
parent9f7256a2c8174fc94b8ceafa13b0a7960083edc1 (diff)
downloadmc-4d3579d9e03400cc44fca47638454207c86b9fd2.tar.gz
Comment the purpose of the tests.
Each test now gets a comment describing what it actually checks, and what it exits with.
Diffstat (limited to 'test/match-badtypes.myr')
-rw-r--r--test/match-badtypes.myr6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/match-badtypes.myr b/test/match-badtypes.myr
index 5fd5d56..1b43cfe 100644
--- a/test/match-badtypes.myr
+++ b/test/match-badtypes.myr
@@ -1,3 +1,9 @@
+/*
+should fail to compile because
+all types matched over should be
+compatible. Strings are not compatible
+with integers.
+*/
const foo = {
match 123
"asdf": 123