summaryrefslogtreecommitdiff
path: root/test/matchint.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-28 21:45:20 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-28 21:45:20 -0400
commit2875475106b50c1b537de512ce7605169820cc53 (patch)
treeba03480791a6224d63358122b71ad6215e018361 /test/matchint.myr
parent3d37937626b037cf83716ed201bcc404bc1d69a9 (diff)
downloadmc-2875475106b50c1b537de512ce7605169820cc53.tar.gz
Renamed 'match' test.
Diffstat (limited to 'test/matchint.myr')
-rw-r--r--test/matchint.myr25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/matchint.myr b/test/matchint.myr
new file mode 100644
index 0000000..63f6fc6
--- /dev/null
+++ b/test/matchint.myr
@@ -0,0 +1,25 @@
+const main = {
+ var v
+
+ v = 12
+ match 12
+ 1:
+ -> 42
+ ;;
+ 2:
+ -> 81
+ ;;
+ 3:
+ -> 123
+ ;;
+ 4:
+ -> 99
+ ;;
+ 12:
+ -> 84
+ ;;
+ 6:
+ -> 18
+ ;;
+ ;;
+}