shithub: mc

Download patch

ref: 5106fe5edb4664688fe87b6340b32c0c1dbd6157
parent: a2ec5b679784ea9ddc8150ceaec2fab37e0032a0
author: S. Gilles <[email protected]>
date: Sat Dec 30 21:49:06 EST 2017

test byenum from iter, not std

--- 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++