Skip to content

Commit 85f6b8b

Browse files
authored
Test routines from ApproxFunBaseTest (#129)
1 parent bf205b4 commit 85f6b8b

14 files changed

+43
-29
lines changed

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2222
[compat]
2323
AbstractFFTs = "0.5, 1"
2424
ApproxFunBase = "0.7"
25+
ApproxFunBaseTest = "0.1"
2526
Aqua = "0.5"
2627
BandedMatrices = "0.16, 0.17"
2728
BlockArrays = "0.14, 0.15, 0.16"
@@ -37,10 +38,11 @@ SpecialFunctions = "0.10, 1.0, 2"
3738
julia = "1.6"
3839

3940
[extras]
41+
ApproxFunBaseTest = "a931bfaf-0cfd-4a5c-b69c-bf2eed002b43"
4042
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
4143
LazyArrays = "5078a376-72f3-5289-bfd5-ec5146d43c02"
4244
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
4345
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4446

4547
[targets]
46-
test = ["Aqua", "Test", "StaticArrays", "LazyArrays"]
48+
test = ["ApproxFunBaseTest", "Aqua", "Test", "StaticArrays", "LazyArrays"]

test/ChebyshevTest.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using ApproxFunOrthogonalPolynomials, ApproxFunBase, LinearAlgebra, Test
2-
import ApproxFunBase: testspace, recA, recB, recC, transform!, itransform!
2+
import ApproxFunBase: recA, recB, recC, transform!, itransform!
3+
import ApproxFunBaseTest: testspace
34
import ApproxFunOrthogonalPolynomials: forwardrecurrence
45

56
@testset "Chebyshev" begin

test/EigTest.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
using ApproxFunOrthogonalPolynomials, ApproxFunBase, BandedMatrices, SpecialFunctions, Test
2-
import ApproxFunBase: bandwidth
3-
4-
1+
using ApproxFunOrthogonalPolynomials
2+
using ApproxFunBase
3+
using ApproxFunBase: bandwidth
4+
using BandedMatrices
5+
using SpecialFunctions
6+
using Test
57

68
@testset "Eigenvalue problems" begin
79
@testset "Negative Laplacian with Neumann boundary conditions" begin

test/HermiteTest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using ApproxFunOrthogonalPolynomials, ApproxFunBase, SpecialFunctions, Test
2-
import ApproxFunBase: testbandedoperator
2+
import ApproxFunBaseTest: testbandedoperator
33

44
@testset "Hermite and GaussWeight" begin
55
@testset "Evaluation" begin

test/JacobiTest.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
using ApproxFunOrthogonalPolynomials, ApproxFunBase, Test, SpecialFunctions, LinearAlgebra
2-
import ApproxFunBase: testbandedbelowoperator, testbandedoperator, testspace, testtransforms, Vec,
3-
maxspace, NoSpace, hasconversion, testfunctional,
2+
import ApproxFunBase: Vec, maxspace, NoSpace, hasconversion,
43
reverseorientation, ReverseOrientation, transform!, itransform!
4+
using ApproxFunBaseTest: testbandedbelowoperator, testbandedoperator, testspace, testtransforms,
5+
testfunctional
56
import ApproxFunOrthogonalPolynomials: jacobip
67

78
@testset "Jacobi" begin

test/LaguerreTest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using ApproxFunOrthogonalPolynomials, ApproxFunBase, SpecialFunctions, Test
2-
import ApproxFunBase: testbandedoperator
2+
import ApproxFunBaseTest: testbandedoperator
33

44

55
@testset "Laguerre and WeightedLaguerre" begin

test/MultivariateTest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using ApproxFunBase, ApproxFunOrthogonalPolynomials, LinearAlgebra, SpecialFunctions, BlockBandedMatrices, Test
2-
import ApproxFunBase: testbandedblockbandedoperator, testraggedbelowoperator, factor, Block, cfstype,
3-
blocklengths, block, tensorizer, Vec, ArraySpace, ∞,
2+
import ApproxFunBase: factor, Block, cfstype, blocklengths, block, tensorizer, Vec, ArraySpace, ∞
3+
using ApproxFunBaseTest: testbandedblockbandedoperator, testraggedbelowoperator,
44
testblockbandedoperator
55
import ApproxFunOrthogonalPolynomials: chebyshevtransform
66

test/ODETest.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using ApproxFunOrthogonalPolynomials, ApproxFunBase, SpecialFunctions, Test, LazyArrays
2-
import ApproxFunBase: Multiplication, testraggedbelowoperator, testbandedoperator, interlace, ∞, ℵ₀
2+
import ApproxFunBase: Multiplication, interlace, ∞, ℵ₀
3+
using ApproxFunBaseTest: testraggedbelowoperator, testbandedoperator
34

45
@testset "ODE" begin
56
@testset "Airy" begin

test/OperatorTest.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using ApproxFunOrthogonalPolynomials, ApproxFunBase, BlockBandedMatrices, LinearAlgebra, Test
2-
import ApproxFunBase: Multiplication,InterlaceOperator, Block, ∞,
3-
testfunctional, testbandedoperator, testraggedbelowoperator, testinfoperator, testblockbandedoperator
2+
import ApproxFunBase: Multiplication, InterlaceOperator, Block, ∞
3+
using ApproxFunBaseTest: testfunctional, testbandedoperator, testraggedbelowoperator,
4+
testinfoperator, testblockbandedoperator
45
import ApproxFunOrthogonalPolynomials: JacobiZ
56

67
@testset "Operator" begin

test/PDETest.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using ApproxFunBase, ApproxFunOrthogonalPolynomials, LinearAlgebra, Test
2-
import ApproxFunBase: testbandedblockbandedoperator, testblockbandedoperator, testraggedbelowoperator, Block, ldiv_coefficients
2+
import ApproxFunBase: Block, ldiv_coefficients
3+
using ApproxFunBaseTest: testbandedblockbandedoperator, testblockbandedoperator, testraggedbelowoperator
34

45
@testset "PDE" begin
56
@testset "Rectangle Laplace/Poisson" begin

0 commit comments

Comments
 (0)