Skip to content

Commit 6b00088

Browse files
authored
Merge pull request #629 from jeremiahpslewis/jpsl/add-test
Add test to document Float32 projection behavior
2 parents ed50b20 + 8e82aca commit 6b00088

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/projection.jl

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ struct NoSuperType end
3535
@test ProjectTo(1.0f0 + 2im)(3) === 3.0f0 + 0im
3636
@test ProjectTo(big(1.0))(2) === 2
3737
@test ProjectTo(1.0)(2) === 2.0
38+
@test ProjectTo(1.0f0)(2) === 2.0f0
39+
@test ProjectTo(1)(2.0f0) === 2.0
3840

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

0 commit comments

Comments
 (0)