Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Nov 2, 2022
1 parent 9a094e5 commit 3cb117d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/iterators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -987,3 +987,11 @@ end
@test !Base.isdone(gen)
@test collect(gen) == ["foo"]
end

@testset "empty product iterators" begin
v = nothing
for (z,) in zip(Iterators.product())
v = z
end
@test v == ()
end

0 comments on commit 3cb117d

Please sign in to comment.