Skip to content

Commit 3cb117d

Browse files
committed
add a test
1 parent 9a094e5 commit 3cb117d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/iterators.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,3 +987,11 @@ end
987987
@test !Base.isdone(gen)
988988
@test collect(gen) == ["foo"]
989989
end
990+
991+
@testset "empty product iterators" begin
992+
v = nothing
993+
for (z,) in zip(Iterators.product())
994+
v = z
995+
end
996+
@test v == ()
997+
end

0 commit comments

Comments
 (0)