Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis authored Aug 9, 2023
1 parent 02d455e commit 8e82aca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/projection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ struct NoSuperType end
@test ProjectTo(1.0f0 + 2im)(3) === 3.0f0 + 0im
@test ProjectTo(big(1.0))(2) === 2
@test ProjectTo(1.0)(2) === 2.0
@test ProjectTo(1.0f0)(2) === 2.0f0
@test ProjectTo(1)(2.0f0) === 2.0

# Tangents
ProjectTo(1.0f0 + 2im)(Tangent{ComplexF64}(; re=1, im=NoTangent())) ===
Expand Down

0 comments on commit 8e82aca

Please sign in to comment.