Skip to content

Commit 803c555

Browse files
committed
Test: Enforce object identity for adjoint using ===
1 parent 78bcdb7 commit 803c555

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/basics.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ end
360360

361361
@testset "Adjoint" begin
362362
@syms x::Real y
363-
@test isequal(adjoint(x), x)
363+
ax = adjoint(x)
364+
@test isequal(ax, x)
365+
@test ax === x
364366
@test isequal(adjoint(y), conj(y))
365-
end
367+
end

0 commit comments

Comments
 (0)