Skip to content

Commit ebfe0d3

Browse files
committed
add tests
1 parent 5693538 commit ebfe0d3

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
version:
13-
- '1.5'
14-
- '^1.6.0-0'
13+
- '1'
1514
os:
1615
- ubuntu-latest
1716
- macOS-latest

Project.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "MultivariateOrthogonalPolynomials"
22
uuid = "4f6956fd-4f93-5457-9149-7bfc4b2ce06d"
3-
version = "0.0.9"
3+
version = "0.1.0"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -42,4 +42,11 @@ LazyBandedMatrices = "0.5"
4242
QuasiArrays = "0.4, 0.5"
4343
SpecialFunctions = "0.10, 1"
4444
StaticArrays = "0.12, 1"
45-
julia = "1.5"
45+
julia = "1.6"
46+
47+
[extras]
48+
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
49+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
50+
51+
[targets]
52+
test = ["RecipesBase", "Test"]

src/MultivariateOrthogonalPolynomials.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using ClassicalOrthogonalPolynomials, FastTransforms, BlockBandedMatrices, Block
44
LazyArrays, SpecialFunctions, LinearAlgebra, BandedMatrices, LazyBandedMatrices, ArrayLayouts,
55
HarmonicOrthogonalPolynomials
66

7-
import Base: axes, in, ==, *, ^, \, copy, OneTo, getindex, size
7+
import Base: axes, in, ==, *, ^, \, copy, OneTo, getindex, size, oneto
88
import DomainSets: boundary
99

1010
import QuasiArrays: LazyQuasiMatrix, LazyQuasiArrayStyle
@@ -26,13 +26,6 @@ export UnitTriangle, UnitDisk, JacobiTriangle, TriangleWeight, WeightedTriangle,
2626
MultivariateOrthogonalPolynomial, BivariateOrthogonalPolynomial, Zernike, RadialCoordinate,
2727
zerniker, zernikez, Weighted, Block, ZernikeWeight
2828

29-
if VERSION < v"1.6-"
30-
oneto(n) = Base.OneTo(n)
31-
else
32-
import Base: oneto
33-
end
34-
35-
3629

3730
include("disk.jl")
3831
include("triangle.jl")

test/test_disk.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, BlockArrays, BandedMatrices, FastTransforms, LinearAlgebra, Test
1+
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, BlockArrays, BandedMatrices, FastTransforms, LinearAlgebra, RecipesBase, Test
22
import MultivariateOrthogonalPolynomials: DiskTrav, grid
33
import ClassicalOrthogonalPolynomials: HalfWeighted
44

@@ -225,4 +225,12 @@ import ClassicalOrthogonalPolynomials: HalfWeighted
225225
L2 = Zernike(1) \ Weighted(Zernike(1))
226226
@test w*Zernike(1)[xy,Block.(1:5)]' Zernike(1)[xy,Block.(1:7)]'*L2[Block.(1:7),Block.(1:5)]
227227
end
228+
229+
@testset "plotting" begin
230+
Z = Zernike()
231+
u = Z * [1; 2; zeros(∞)];
232+
rep = RecipesBase.apply_recipe(Dict{Symbol, Any}(), u)
233+
g = MultivariateOrthogonalPolynomials.plotgrid(Z[:,1:3])
234+
@test rep[1].args == (first.(g),last.(g),u[g])
235+
end
228236
end

0 commit comments

Comments
 (0)