Skip to content

Commit

Permalink
tests adjoint(x)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophHotter committed Aug 29, 2024
1 parent 1fced24 commit 78bcdb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,10 @@ end
@test typeof(sin(x)) <: BasicSymbolic{LiteralReal}
end
@test repr(sin(x) + sin(x)) == "sin(x) + sin(x)"
end

@testset "Adjoint" begin
@syms x::Real y
@test isequal(adjoint(x), x)
@test isequal(adjoint(y), conj(y))
end

0 comments on commit 78bcdb7

Please sign in to comment.