Skip to content

Commit

Permalink
Merge pull request #629 from jeremiahpslewis/jpsl/add-test
Browse files Browse the repository at this point in the history
Add test to document Float32 projection behavior
  • Loading branch information
oxinabox authored Mar 1, 2024
2 parents ed50b20 + 8e82aca commit 6b00088
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 6b00088

Please sign in to comment.