summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2017-12-31 02:49:06 -0500
committerOri Bernstein <ori@eigenstate.org>2018-01-02 00:40:09 -0800
commit5106fe5edb4664688fe87b6340b32c0c1dbd6157 (patch)
tree14140055e2ce89b366dea0e294afa1c4f69d26a5
parenta2ec5b679784ea9ddc8150ceaec2fab37e0032a0 (diff)
downloadmc-5106fe5edb4664688fe87b6340b32c0c1dbd6157.tar.gz
test byenum from iter, not std
-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++