Skip to content

Commit 8b82770

Browse files
authored
Test for ultiplication inference (#307)
1 parent ca2c199 commit 8b82770

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
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.55, 0.9.11"
33+
ApproxFunBase = "0.8.57, 0.9.13"
3434
ApproxFunBaseTest = "0.1"
3535
Aqua = "0.7"
3636
BandedMatrices = "0.16, 0.17"

test/ChebyshevTest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using Test
88
using ApproxFunBase: transform!, itransform!
99
using ApproxFunBaseTest: testspace
1010
using ApproxFunOrthogonalPolynomials: forwardrecurrence
11-
import Polynomials
11+
import Polynomials
1212

1313
include("testutils.jl")
1414

test/OperatorTest.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ include("testutils.jl")
111111
@time testbandedoperator(A)
112112

113113
@test norm((mul_coefficients(A,f.coefficients))-coefficients(x.*f,rangespace(A))) < 100eps()
114+
115+
M = Multiplication(Fun(),Chebyshev());
116+
@test @inferred(M * M * M) * Fun() Fun(x->x^4, Chebyshev())
117+
M1 = Multiplication(Fun());
118+
@test @inferred(M1 * (M * M)) * Fun() Fun(x->x^4, Chebyshev())
114119
end
115120

116121
@testset "Integral" begin

0 commit comments

Comments
 (0)