From a79a15ebfa044605b0d68196ab587f6cc92a484c Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Mon, 14 Jan 2019 16:27:23 -0800 Subject: [PATCH] Fix a Scan test --- test/test_library.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]