Skip to content

Commit fe2eb0a

Browse files
committed
add tests for deriv
1 parent 08673ab commit fe2eb0a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/JacobiTest.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,22 @@ import ApproxFunOrthogonalPolynomials: jacobip
6060
@testset "Derivative" begin
6161
D=Derivative(Jacobi(0.,1.,Segment(1.,0.)))
6262
@time testbandedoperator(D)
63+
64+
f = Fun(x->x^2, Chebyshev())
65+
C = Chebyshev()
66+
@testset for J = Any[Jacobi(-0.5, -0.5), Legendre()]
67+
if ApproxFunBase.hasconversion(C, J)
68+
g = (Derivative(J) * Conversion(C, J)) * f
69+
h = Derivative(C) * f
70+
@test g h
71+
end
72+
73+
if ApproxFunBase.hasconversion(J, C)
74+
g = (Derivative(C) * Conversion(J, C)) * f
75+
h = Derivative(J) * f
76+
@test g h
77+
end
78+
end
6379
end
6480

6581
@testset "identity Fun for interval domains" begin

0 commit comments

Comments
 (0)