Skip to content

Commit fa53512

Browse files
authored
Tests for jacobiweight multiplication for negative orders (#94)
1 parent afa9ea3 commit fa53512

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/runtests.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,21 +144,21 @@ end
144144
S = Jacobi(half(Odd(1)), half(Odd(3)))
145145
@test @inferred(domainspace(@inferred Multiplication(f,S))) == S
146146

147-
@testset for β in 0:0.5:5, α in 0:0.5:5
147+
@testset for β in -3:0.5:5, α in -3:0.5:5
148148
f = genf(β, α)
149149
g = Fun(x->(1+x)^2 * (1+x)^β * (1-x)^α, JacobiWeight+2, α, Chebyshev()))
150150
@testset for b in 0:8, a in 0:8
151151
S = Jacobi(b,a)
152152
w = Fun(x->(1+x)^2, S)
153153
M = Multiplication(f, S)
154154
@test domainspace(M) == S
155-
if isinteger(β) && isinteger(α) && b >= β && a >= α
155+
reduceorders = 1 && b > 0) || 1 && a >0)
156+
if isinteger(β) && isinteger(α) && reduceorders && b >= β >= 0 && a >= α >= 0
156157
@test rangespace(M) == Jacobi(b-β, a-α)
157-
elseif isinteger(β) && isinteger(α) && b < β && a < α
158+
elseif isinteger(β) && isinteger(α) && reduceorders && 0 <= b < β && 0 <= a < α
158159
@test rangespace(M) == JacobiWeight-b, α-a, Legendre())
159-
elseif !isinteger(β) && (!isinteger(α) || α == 0)
160-
@test rangespace(M) == JacobiWeight(β, α, S)
161-
elseif !isinteger(α) && (!isinteger(β) || β == 0)
160+
elseif !isinteger(β) && !(isinteger(α) && α >= 1) ||
161+
!isinteger(α) && !(isinteger(β) && β >= 1)
162162
@test rangespace(M) == JacobiWeight(β, α, S)
163163
end
164164
@test Multiplication(f) * w M * w g

0 commit comments

Comments
 (0)