Skip to content

Commit bb7ad6c

Browse files
committed
added test for cumprod
1 parent ec2ed8f commit bb7ad6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/arrayops.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,3 +1092,8 @@ end
10921092
# PR #10164
10931093
@test eltype(Array{Int}) == Int
10941094
@test eltype(Array{Int,1}) == Int
1095+
1096+
# PR #11080
1097+
let x = fill(0.9, 1000)
1098+
@test_approx_eq prod(x) cumprod(x)[end]
1099+
end

0 commit comments

Comments
 (0)