summaryrefslogtreecommitdiff
path: root/lib/std/test/iterutil.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/test/iterutil.myr')
-rw-r--r--lib/std/test/iterutil.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/test/iterutil.myr b/lib/std/test/iterutil.myr
index dfa46fa..1d45a4d 100644
--- a/lib/std/test/iterutil.myr
+++ b/lib/std/test/iterutil.myr
@@ -4,21 +4,21 @@ const main = {
var n
n = 0
- for (x, i) in std.byenum([1,3,5,7,9][:])
+ for (x, i) : std.byenum([1,3,5,7,9][:])
std.assert(x == n, "invalid enum idx {}", x)
std.assert(i == n*2 + 1, "invalid enum val {}", i)
n++
;;
n = 0
- for (a, b) in std.byzip([0,2,4,6,8][:], [2,4][:])
+ for (a, b) : std.byzip([0,2,4,6,8][:], [2,4][:])
std.assert(a == n*2, "invalid val from a: {}", a)
std.assert(b == n*2 + 2, "invalid val from b: {}", b)
n++
;;
n = 0
- for x in std.byreverse([3, 2, 1, 0][:])
+ for x : std.byreverse([3, 2, 1, 0][:])
std.assert(x == n, "invalid reversed value {}, expected {}", x, n)
n++
;;