Skip to content

Commit 21895f7

Browse files
committed
Test sum(Union{}[])
1 parent 16e46e7 commit 21895f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/reduce.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ fz = float(z)
133133
@test sum(z) === 136
134134
@test sum(fz) === 136.0
135135

136+
@test_throws ArgumentError sum(Union{}[])
136137
@test_throws ArgumentError sum(sin, Int[])
137138
@test sum(sin, 3) == sin(3.0)
138139
@test sum(sin, [3]) == sin(3.0)

0 commit comments

Comments
 (0)