-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dae4db7
commit 320214c
Showing
2 changed files
with
83 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
@testset "root_system(cartan_matrix::ZZMatrix)" begin | ||
R = root_system(:F, 4) | ||
@test num_positive_roots(R) == 24 | ||
@test num_roots(R) == 48 | ||
@testset "LieAlgebras.RootSystem" begin | ||
@testset "root_system(cartan_matrix::ZZMatrix)" begin | ||
R = root_system(:F, 4) | ||
@test num_positive_roots(R) == 24 | ||
@test num_roots(R) == 48 | ||
|
||
R = root_system(:G, 2) | ||
@test num_positive_roots(R) == 6 | ||
@test num_roots(R) == 12 | ||
R = root_system(:G, 2) | ||
@test num_positive_roots(R) == 6 | ||
@test num_roots(R) == 12 | ||
|
||
@test coefficients(positive_root(R, 1)) == QQ[1 0] | ||
@test coefficients(positive_root(R, 2)) == QQ[0 1] | ||
end | ||
@test coefficients(positive_root(R, 1)) == QQ[1 0] | ||
@test coefficients(positive_root(R, 2)) == QQ[0 1] | ||
end | ||
|
||
@testset "WeightLatticeElem" begin | ||
R = root_system(:A, 2) | ||
w = WeightLatticeElem(R, [2, 2]) | ||
@testset "WeightLatticeElem" begin | ||
R = root_system(:A, 2) | ||
w = WeightLatticeElem(R, [2, 2]) | ||
|
||
@test root_system(w) === R | ||
@test root_system(w) === R | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters