Skip to content

Commit daaf53c

Browse files
test: test promote_operation of real and imag
1 parent 4ff2760 commit daaf53c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/interface.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ Base.@irrational theodorus 1.73205080756887729353 sqrt(big(3))
5757
MathConstants.catalan
5858
@test MA._instantiate(typeof(theodorus)) == theodorus
5959
end
60+
61+
for op in [real, imag]
62+
@test MA.promote_operation(op, ComplexF64) == Float64
63+
@test MA.promote_operation(op, Complex{Real}) == Real
64+
end
65+
6066
end
6167

6268
@testset "Errors" begin

0 commit comments

Comments
 (0)