Skip to content

Commit

Permalink
Add back MPFR version check for test (#25538)
Browse files Browse the repository at this point in the history
We do not require MPFR 3.1.6, yet tests fail before that version.
  • Loading branch information
nalimilan authored and JeffBezanson committed Jan 14, 2018
1 parent 649ca36 commit a1ff12c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/mpfr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,10 @@ end
end

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

@testset "show BigFloat" begin
Expand Down

0 comments on commit a1ff12c

Please sign in to comment.