Skip to content

Commit

Permalink
Fix a Scan test
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jan 15, 2019
1 parent 31d4645 commit a79a15e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_library.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a79a15e

Please sign in to comment.