Skip to content

Commit 491c481

Browse files
author
Andrew Homan
committed
Added tests
1 parent 812e62b commit 491c481

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/mapreduce.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
v1 = @SVector [2,4,6,8]
2121
@test reduce(+, v1) === 20
2222
@test reduce(+, 0, v1) === 20
23+
@test sum(v1) === 20
24+
@test prod(v1) === 384
2325
end
2426

2527
@testset "mapreduce" begin

0 commit comments

Comments
 (0)