@@ -28,13 +28,13 @@ function test_adjtrans()
2828 @test aopA * v == adjoint (A) * v
2929 @test topA * v == transpose (A) * v
3030 v = rand (5 )
31- @test aopA * v == adjoint (A) * v
32- @test topA * v == transpose (A) * v
31+ @test aopA * v ≈ adjoint (A) * v
32+ @test topA * v ≈ transpose (A) * v
3333
3434 v = rand (3 ) + im * rand (3 )
35- @test copA * v == conj (A) * v
35+ @test copA * v ≈ conj (A) * v
3636 v = rand (3 )
37- @test copA * v == conj (A) * v
37+ @test copA * v ≈ conj (A) * v
3838 end
3939end
4040
@@ -80,14 +80,14 @@ function test_derived_adjoint()
8080 @test aopA * v == adjoint (A) * v
8181 @test topA * v == transpose (A) * v
8282 v = rand (5 )
83- @test aopA * v == adjoint (A) * v
84- @test topA * v == transpose (A) * v
83+ @test aopA * v ≈ adjoint (A) * v
84+ @test topA * v ≈ transpose (A) * v
8585
8686
8787 v = rand (3 ) + im * rand (3 )
88- @test copA * v == conj (A) * v
88+ @test copA * v ≈ conj (A) * v
8989 v = rand (3 )
90- @test copA * v == conj (A) * v
90+ @test copA * v ≈ conj (A) * v
9191 end
9292end
9393
@@ -133,14 +133,14 @@ function test_derived_transpose()
133133 @test aopA * v == adjoint (A) * v
134134 @test topA * v == transpose (A) * v
135135 v = rand (5 )
136- @test aopA * v == adjoint (A) * v
137- @test topA * v == transpose (A) * v
136+ @test aopA * v ≈ adjoint (A) * v
137+ @test topA * v ≈ transpose (A) * v
138138
139139
140140 v = rand (3 ) + im * rand (3 )
141- @test copA * v == conj (A) * v
141+ @test copA * v ≈ conj (A) * v
142142 v = rand (3 )
143- @test copA * v == conj (A) * v
143+ @test copA * v ≈ conj (A) * v
144144 end
145145end
146146
0 commit comments