Skip to content

Commit a406a46

Browse files
add some more tests
1 parent db34f05 commit a406a46

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/test_rectdisk.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import MultivariateOrthogonalPolynomials: dunklxu_raising, dunklxu_lowering, Ang
66
@testset "basics" begin
77
P = DunklXuDisk()
88
@test copy(P) P
9+
@test P DunklXuDisk(0.123)
910

1011
xy = axes(P,1)
1112
x,y = first.(xy),last.(xy)
@@ -32,7 +33,7 @@ import MultivariateOrthogonalPolynomials: dunklxu_raising, dunklxu_lowering, Ang
3233
X = P \ (x .* P)
3334
Y = P \ (y .* P)
3435

35-
@test (L*R)[Block.(1:N), Block.(1:N)] (I - X^2 - Y^2)[Block.(1:N), Block.(1:N)]
36+
@test (L * R)[Block.(1:N), Block.(1:N)] (I - X^2 - Y^2)[Block.(1:N), Block.(1:N)]
3637

3738
∂x = PartialDerivative{1}(axes(P, 1))
3839
∂y = PartialDerivative{2}(axes(P, 1))
@@ -43,7 +44,7 @@ import MultivariateOrthogonalPolynomials: dunklxu_raising, dunklxu_lowering, Ang
4344
Mx = Q \ (x .* Q)
4445
My = Q \ (y .* Q)
4546

46-
A = Mx[Block.(1:N), Block.(1:N+1)]*Dy[Block.(1:N+1), Block.(1:N)] - My[Block.(1:N), Block.(1:N+1)]*Dx[Block.(1:N+1), Block.(1:N)]
47+
A = (Mx * Dy - My * Dx)[Block.(1:N), Block.(1:N)]
4748

4849
B = (Q \ P)[Block.(1:N), Block.(1:N)]
4950

@@ -55,11 +56,15 @@ import MultivariateOrthogonalPolynomials: dunklxu_raising, dunklxu_lowering, Ang
5556

5657
@test λ im*imag(λ)
5758

58-
∂θ = AngularMomentum(P)
59+
∂θ = AngularMomentum(axes(P, 1))
60+
@test axes(∂θ) == (axes(P, 1), axes(P, 1))
61+
@test ∂θ == AngularMomentum(axes(Q, 1))
62+
@test copy(∂θ) ∂θ
5963

6064
A = P \ (∂θ * P)
6165

6266
@test A[Block.(1:N), Block.(1:N)] C
67+
@test (A^2)[Block.(1:N), Block.(1:N)] A[Block.(1:N), Block.(1:N)]^2
6368

6469
∂x = PartialDerivative{1}(axes(WQ, 1))
6570
∂y = PartialDerivative{2}(axes(WQ, 1))

0 commit comments

Comments
 (0)