Skip to content

Commit 78bcdb7

Browse files
tests adjoint(x)
1 parent 1fced24 commit 78bcdb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/basics.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,4 +356,10 @@ end
356356
@test typeof(sin(x)) <: BasicSymbolic{LiteralReal}
357357
end
358358
@test repr(sin(x) + sin(x)) == "sin(x) + sin(x)"
359+
end
360+
361+
@testset "Adjoint" begin
362+
@syms x::Real y
363+
@test isequal(adjoint(x), x)
364+
@test isequal(adjoint(y), conj(y))
359365
end

0 commit comments

Comments
 (0)