ref: 590dd41e3e1a90ce3986ab8db1e6490f597fba3f
parent: 57bf65bd49ad06d0eb5f66b570cc87abb50d676b
author: Ori Bernstein <[email protected]>
date: Sat Dec 28 11:14:39 EST 2013
Add test for pattern iteration.
--- /dev/null
+++ b/test/patiter.myr
@@ -1,0 +1,9 @@
+use std
+
+const main = {
+ /* should print 1,3,5 */
+ for (1,x) in [(1,2),(1,3),(2,4),(1,5)]
+ std.put("%i", x)
+ ;;
+ std.put("\n")
+}
--- a/test/tests
+++ b/test/tests
@@ -56,6 +56,7 @@
B nestfn E 42
# B closure E 55 ## BUGGERED
B loop E 45
+B patiter P 235
B condiftrue E 7
B condiffalse E 9
B condifrel E 7