Skip to content

Commit 092b968

Browse files
authored
Change Pi^-1 to Pi^Int(-1) in tests to avoid converting to float
Fixes the test failure in JuliaLang/julia#60130 (comment), which will make this error.
1 parent 44d5302 commit 092b968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ end
495495
@testset "Complex{Int}" begin
496496
@test Pi//(2im) === (0//1 - 1//2*im)*Pi
497497
@test Pi^2//(2im) === (0//1 - 1//2*im)*Pi^2
498-
@test Pi^-1//(2im) === (0//1 - 1//2*im)*Pi^-1
498+
@test Pi^Int(-1)//(2im) === (0//1 - 1//2*im)*Pi^Int(-1)
499499
end
500500
@testset "Complex{PiTimes}" begin
501501
@test 2Pi // (2Pi + 0Pi*im) == 1//1 + 0//1*im

0 commit comments

Comments
 (0)