Skip to content

Commit 5d108b7

Browse files
authored
Tests for Evaluation getindex (#67)
1 parent 1e7d782 commit 5d108b7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1616
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1717

1818
[compat]
19-
ApproxFunBase = "0.8.16"
19+
ApproxFunBase = "0.8.36"
2020
ApproxFunBaseTest = "0.1"
2121
ApproxFunOrthogonalPolynomials = "0.2.3, 0.3, 0.4, 0.5, 0.6"
2222
Aqua = "0.6"

test/runtests.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ end
212212
sp = JacobiWeight(0.5,1,Legendre())
213213
@test (@inferred Union{typeof(sp),NoSpace} ApproxFunBase.maxspace_rule(sp, sp)) == sp
214214
end
215+
216+
@testset "Evaluation bug" begin
217+
S = Chebyshev()
218+
E = Evaluation(S, 0.5)
219+
EJW = Evaluation(JacobiWeight(0,0,S), 0.5)
220+
@test EJW[4] E[4]
221+
@test EJW[1:4] E[1:4]
222+
end
215223
end
216224

217225
@testset "Ray and Line" begin

0 commit comments

Comments
 (0)