Skip to content

Commit a1ff12c

Browse files
nalimilanJeffBezanson
authored andcommitted
Add back MPFR version check for test (#25538)
We do not require MPFR 3.1.6, yet tests fail before that version.
1 parent 649ca36 commit a1ff12c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/mpfr.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,8 +880,10 @@ end
880880
end
881881

882882
# issue #22758
883-
setprecision(2_000_000) do
884-
@test abs(sin(big(pi)/6) - 0.5) < ldexp(big(1.0),-1_999_000)
883+
if MPFR.version() > v"3.1.5" || "r11590" in MPFR.patches()
884+
setprecision(2_000_000) do
885+
@test abs(sin(big(pi)/6) - 0.5) < ldexp(big(1.0),-1_999_000)
886+
end
885887
end
886888

887889
@testset "show BigFloat" begin

0 commit comments

Comments
 (0)