Skip to content

Commit

Permalink
Add test for ==
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Jul 21, 2023
1 parent 1e40cb8 commit b031420
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions experimental/LieAlgebras/test/LieAlgebraIdeal-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@

@test dim(b) == 6
@test dim(n) == 3

@test n == ideal(b, [basis(b, 2), basis(b, 3), basis(b, 5)])
@test n == ideal(b, [basis(b, 2) + basis(b, 3), basis(b, 3), basis(b, 5)])
@test n ==
ideal(b, [basis(b, 2) + basis(b, 3), basis(b, 3), basis(b, 5)]; is_basis=true)
end

let # Example where ideal basis is only found after two steps
Expand Down
5 changes: 5 additions & 0 deletions experimental/LieAlgebras/test/LieSubalgebra-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@

@test dim(b) == 6
@test dim(n) == 3

@test n == sub(L, [basis(b, 2), basis(b, 3), basis(b, 5)])
@test n == sub(L, [basis(b, 2) + basis(b, 3), basis(b, 3), basis(b, 5)])
@test n ==
sub(L, [basis(b, 2) + basis(b, 3), basis(b, 3), basis(b, 5)]; is_basis=true)
end
end

Expand Down

0 comments on commit b031420

Please sign in to comment.