diff --git a/test/test_library.jl b/test/test_library.jl index f73eff224f..91cf8f16b2 100644 --- a/test/test_library.jl +++ b/test/test_library.jl @@ -41,7 +41,8 @@ end @testset "Scan" begin @testset for xs in iterator_variants(1:10) - @test collect(Scan(+), 1:10) == cumsum(1:10) + xs isa Base.Generator && continue + @test collect(Scan(+), xs) == cumsum(xs) end xs0 = [0, -1, 3, -2, 1]