Skip to content

Commit 8819aab

Browse files
committed
Update runtests.jl
1 parent adc1349 commit 8819aab

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/runtests.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using HarmonicOrthogonalPolynomials, StaticArrays, Test, InfiniteArrays, LinearAlgebra, BlockArrays, ClassicalOrthogonalPolynomials, QuasiArrays
2-
import HarmonicOrthogonalPolynomials: ZSphericalCoordinate, associatedlegendre, grid, SphereTrav, RealSphereTrav, plotgrid
2+
import HarmonicOrthogonalPolynomials: ZSphericalCoordinate, associatedlegendre, grid, SphereTrav, RealSphereTrav, plotgrid, BivariateOrthogonalPolynomial
33

44
# @testset "associated legendre" begin
55
# m = 2
@@ -428,3 +428,13 @@ end
428428
@test isdiag(A[1:N, 1:N])
429429
@test A[1:N, 1:N]^2 A2[1:N, 1:N]
430430
end
431+
432+
433+
struct IncompleteMultivariateOP <: BivariateOrthogonalPolynomial{Float64} end
434+
Base.axes(::IncompleteMultivariateOP) = Inclusion((-1.0..1)^2), blockedrange(Base.oneto(∞))
435+
436+
@test_throws "Overload" IncompleteMultivariateOP()[SVector(0.1,0.2),2]
437+
@test_throws "Overload" IncompleteMultivariateOP()[SVector(0.1,0.2),Block(2)]
438+
@test_throws "Overload" IncompleteMultivariateOP()[SVector(0.1,0.2),Block(2)[2]]
439+
@test_throws "Overload" IncompleteMultivariateOP()[SVector(0.1,0.2),[1,2]]
440+

0 commit comments

Comments
 (0)