Skip to content

Commit 5c4fd2f

Browse files
authored
big_str instead of parse BigFloat (#796)
1 parent 68d8d1f commit 5c4fd2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/NumberTypeTest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using ApproxFun, ApproxFunOrthogonalPolynomials, Test
44
@testset "BigFloat constructor" begin
55
single_sin = Fun(sin,Interval(0.f0,1.f0))
66
double_sin = Fun(sin,Interval(0.,1.))
7-
big_sin = Fun(sin,Interval(parse(BigFloat,"0.0"), parse(BigFloat,"1.0")))
7+
big_sin = Fun(sin,Interval(big"0.0", big"1.0"))
88

99
@test ncoefficients(single_sin) <= ncoefficients(double_sin)
1010
@test ncoefficients(double_sin) <= ncoefficients(big_sin)
@@ -53,7 +53,7 @@ using ApproxFun, ApproxFunOrthogonalPolynomials, Test
5353
f = x^/2-1) * exp(-x/2)
5454
# TODO: JacobiWeight should support general types to avoid warning here
5555
@test f(10.0) 10.0^/2-1) * exp(-10.0/2) rtol=eps()
56-
ex_mathematica = parse(BigFloat, "8.6494114955713766301430915207861966687081153e778")
56+
ex_mathematica = big"8.6494114955713766301430915207861966687081153e778"
5757
@test (cumsum(f)(10.0) - ex_mathematica)/ex_mathematica eps()
5858

5959
x = Fun(BigFloat(0)..BigFloat(Inf))

0 commit comments

Comments
 (0)