summaryrefslogtreecommitdiff
path: root/lib/iter/test/enum.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/iter/test/enum.myr')
-rw-r--r--lib/iter/test/enum.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/iter/test/enum.myr b/lib/iter/test/enum.myr
index 5c09734..62c2a05 100644
--- a/lib/iter/test/enum.myr
+++ b/lib/iter/test/enum.myr
@@ -1,10 +1,11 @@
use std
+use iter
const main = {
var n
n = 0
- for (x, i) : std.byenum([1,3,5,7,9][:])
+ for (x, i) : iter.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++