Skip to content

Commit 3833c19

Browse files
authored
Test for inference using BigFloat interval in Chebyshev (#324)
1 parent b05afeb commit 3833c19

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ApproxFunOrthogonalPolynomialsPolynomialsExt = "Polynomials"
3030
ApproxFunOrthogonalPolynomialsStaticExt = "Static"
3131

3232
[compat]
33-
ApproxFunBase = "0.8.60, 0.9.16"
33+
ApproxFunBase = "0.8.63, 0.9.21"
3434
ApproxFunBaseTest = "0.1"
3535
Aqua = "0.8"
3636
BandedMatrices = "0.16, 0.17, 1"

test/ChebyshevTest.jl

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,6 @@ include("testutils.jl")
126126
end
127127
end
128128

129-
@testset "other domains" begin
130-
ef = Fun(exp,1..2)
131-
cf = Fun(cos,1..2)
132-
133-
ecf = Fun(x->cos(x).*exp(x),1..2)
134-
eocf = Fun(x->cos(x)./exp(x),1..2)
135-
136-
x=1.5
137-
@test ef(x) exp(x)
138-
139-
r=rand(100) .+ 1
140-
@test maximum(abs,ef.(r)-exp.(r))<400eps()
141-
@test maximum(abs,ecf.(r).-cos.(r).*exp.(r))<100eps()
142-
143-
@testset "setdomain" begin
144-
@test setdomain(NormalizedChebyshev(0..1), 1..2) == NormalizedChebyshev(1..2)
145-
end
146-
end
147-
148129
@testset "Other interval" begin
149130
ef = Fun(exp,1..2)
150131
cf = Fun(cos,1..2)
@@ -170,6 +151,13 @@ include("testutils.jl")
170151

171152
@test sum(ef) 4.670774270471604
172153
@test norm(ef) 4.858451087240335
154+
155+
@testset "setdomain" begin
156+
@test setdomain(NormalizedChebyshev(0..1), 1..2) == NormalizedChebyshev(1..2)
157+
end
158+
159+
fexp = @inferred Fun(exp, Chebyshev(big(-1.0) .. big(1.0)))
160+
@test fexp(0.5) exp(big(0.5))
173161
end
174162

175163
@testset "Roots" begin

0 commit comments

Comments
 (0)