Skip to content

Commit

Permalink
test sum(BroadcastArray)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott authored Jan 23, 2019
1 parent f14fd8b commit 5c99cbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ end
@test C == A .+ 2
D = BroadcastArray(+, A, C)
@test D == A + C

@test sum(B) sum(exp, A)
@test sum(C) sum(A .+ 2)

x = Vcat([3,4], [1,1,1,1,1], 1:3)
@test x .+ (1:10) isa Vcat
Expand Down

0 comments on commit 5c99cbb

Please sign in to comment.