Skip to content

Commit aadf53f

Browse files
test: test promote_operation of real and imag
1 parent 07ce2fc commit aadf53f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/interface.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ 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
6065
end
6166

6267
@testset "Errors" begin

0 commit comments

Comments
 (0)