Skip to content

Commit 37b2701

Browse files
committed
replace first by take
1 parent fed4ebb commit 37b2701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ end
409409
@test first(x,2) == first(y,2)
410410
@test Base.IteratorSize(y) == Base.IteratorSize(x)
411411
s = Iterators.Stateful(y)
412-
@test first(s, 2) == x[1:2]
413-
@test first(s, 2) == x[3:4]
412+
@test collect(Iterators.take(s, 2)) == x[1:2]
413+
@test collect(Iterators.take(s, 2)) == x[3:4]
414414
end
415415
end
416416

0 commit comments

Comments
 (0)