Skip to content

Commit afa9ea3

Browse files
authored
Tests for JacobiWeight Multiplication with fractional exponents (#93)
1 parent 1e6fc10 commit afa9ea3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

test/runtests.jl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,19 +144,22 @@ 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:5, α in 0:5
147+
@testset for β in 0:0.5:5, α in 0:0.5:5
148148
f = genf(β, α)
149-
g = Fun(x->(1+x)^2 * (1+x)^β * (1-x)^α)
149+
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 b >= β && a >= α
155+
if isinteger(β) && isinteger(α) && b >= β && a >= α
156156
@test rangespace(M) == Jacobi(b-β, a-α)
157-
end
158-
if b < β && a < α
157+
elseif isinteger(β) && isinteger(α) && b < β && a < α
159158
@test rangespace(M) == JacobiWeight-b, α-a, Legendre())
159+
elseif !isinteger(β) && (!isinteger(α) || α == 0)
160+
@test rangespace(M) == JacobiWeight(β, α, S)
161+
elseif !isinteger(α) && (!isinteger(β) || β == 0)
162+
@test rangespace(M) == JacobiWeight(β, α, S)
160163
end
161164
@test Multiplication(f) * w M * w g
162165
end

0 commit comments

Comments
 (0)