ref: 2875475106b50c1b537de512ce7605169820cc53
parent: 3d37937626b037cf83716ed201bcc404bc1d69a9
author: Ori Bernstein <[email protected]>
date: Thu Jun 28 17:45:20 EDT 2012
Renamed 'match' test.
--- a/test/match.myr
+++ /dev/null
@@ -1,13 +1,0 @@
-const m = {v
- match v
- 1: -> 42;;
- 2: -> 81;;
- 3: -> 123;;
- 4: -> 99;;
- _: -> 8
- ;;
-}
-
-const main = {
- -> m(2)
-}
--- /dev/null
+++ b/test/matchint.myr
@@ -1,0 +1,25 @@
+const main = {
+ var v
+
+ v = 12
+ match 12
+ 1:
+ -> 42
+ ;;
+ 2:
+ -> 81
+ ;;
+ 3:
+ -> 123
+ ;;
+ 4:
+ -> 99
+ ;;
+ 12:
+ -> 84
+ ;;
+ 6:
+ -> 18
+ ;;
+ ;;
+}