Skip to content

Commit eef51d7

Browse files
GiggleLiumaleadt
authored andcommitted
new tests
1 parent fce9c14 commit eef51d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/testsuite/mapreduce.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ function test_mapreduce(AT)
5555
@test !(A B)
5656
@test !(A Array(B))
5757
@test !(Array(A) B)
58+
59+
60+
ca = AT(randn(ComplexF64,3,3))
61+
cb = copy(ca)
62+
cb[1:1, 1:1] .+= 1e-7im
63+
@test isapprox(ca, cb, atol=1e-5)
64+
@test !isapprox(ca, cb, atol=1e-9)
5865
end
5966
end
6067
end

0 commit comments

Comments
 (0)