Skip to content

Commit

Permalink
Add some printing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Nov 19, 2024
1 parent fcd8c93 commit 6eb76a2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/AlgAss/AlgGrp.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@testset "Group algebras" begin
G = small_group(8, 4)
A = GroupAlgebra(QQ, G)

@test sprint(show, MIME"text/plain"(), A) isa String
@test sprint(show, A) isa String
@testset "Regular matrix algebra" begin
B, BtoA = Hecke.regular_matrix_algebra(A)

Expand Down Expand Up @@ -92,6 +93,8 @@
QG = Hecke._group_algebra(QQ, G; sparse = true, cached = false)
@test dim(QG) == factorial(10)
#@test !is_commutative(QG) # needs https://github.com/Nemocas/AbstractAlgebra.jl/pull/1907
@test sprint(show, MIME"text/plain"(), QG) isa String
@test sprint(show, QG) isa String
for i in 1:10
a = rand(G)
b = rand(G)
Expand All @@ -112,6 +115,8 @@
QG = Hecke._group_algebra(QQ, G; sparse = true, cached = false)
@test dim(QG) == 2 * 3 * 5000
@test is_commutative(QG)
@test sprint(show, MIME"text/plain"(), QG) isa String
@test sprint(show, QG) isa String
for i in 1:10
a = rand(G)
b = rand(G)
Expand All @@ -126,4 +131,12 @@
@test (aa + bb)^2 == QG(a)^2 + cc + dd + QG(b)^2
end
end

let
G = abelian_group([2, 3, 0])
QG = Hecke._group_algebra(QQ, G; sparse = true, cached = false)
@test is_commutative(QG)
@test sprint(show, MIME"text/plain"(), QG) isa String
@test sprint(show, QG) isa String
end
end

0 comments on commit 6eb76a2

Please sign in to comment.