Skip to content

Commit 857eef4

Browse files
committed
test complex sums
1 parent 96c9c78 commit 857eef4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ setprecision(65536)
1313
@test exact == xsum(@view A[:,1])
1414
@test exact == xsum(@view Array(A')[1,:])
1515

16-
@test 2*exact == xsum(2*x for x in a)
16+
@test 2exact == xsum(2x for x in a)
17+
18+
@test Complex(2exact, 4exact) == xsum(Complex(2x,4x) for x in a)
1719
end
1820
end
1921

0 commit comments

Comments
 (0)