Skip to content

Commit 8e8f160

Browse files
authored
re-enable test for bigfloat (#892)
1 parent fe4a3ed commit 8e8f160

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

test/NumberTypeTest.jl

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,19 @@ include(joinpath(@__DIR__, "testutils.jl"))
5555
end
5656

5757
@testset "BigFloat relative tolerance bug test Issue #557" begin
58-
if false # disabled due to Julia issue https://github.com/JuliaLang/julia/issues/25853
59-
x = Fun(BigFloat(0)..BigFloat(20_000));
60-
ν = BigFloat(1568)
61-
f = x^/2-1) * exp(-x/2)
62-
# TODO: JacobiWeight should support general types to avoid warning here
63-
@test f(10.0) 10.0^/2-1) * exp(-10.0/2) rtol=eps()
64-
ex_mathematica = big"8.6494114955713766301430915207861966687081153e778"
65-
@test (cumsum(f)(10.0) - ex_mathematica)/ex_mathematica eps()
66-
67-
x = Fun(BigFloat(0)..BigFloat(Inf))
68-
ν = BigFloat(1568)
69-
f = x^/2-1) * exp(-x/2)
70-
@test f(10.0) 10.0^/2-1) * exp(-10.0/2) rtol=eps()
71-
@test_skip (cumsum(f)(10.0) - ex_mathematica)/ex_mathematica eps()
72-
end
58+
x = Fun(BigFloat(0)..BigFloat(20_000));
59+
ν = BigFloat(1568)
60+
f = x^/2-1) * exp(-x/2)
61+
# TODO: JacobiWeight should support general types to avoid warning here
62+
@test f(10.0) 10.0^/2-1) * exp(-10.0/2) rtol=eps()
63+
ex_mathematica = big"8.6494114955713766301430915207861966687081153e778"
64+
@test (cumsum(f)(10.0) - ex_mathematica)/ex_mathematica eps()
65+
66+
x = Fun(Ray(BigFloat(0)..BigFloat(Inf)))
67+
ν = BigFloat(1568)
68+
f = x^/2-1) * exp(-x/2)
69+
@test f(10.0) 10.0^/2-1) * exp(-10.0/2) rtol=eps()
70+
@test_skip (cumsum(f)(10.0) - ex_mathematica)/ex_mathematica eps()
7371
end
7472

7573
@testset "#641" begin

0 commit comments

Comments
 (0)