|
1 | 1 | @testset "Group algebras" begin
|
2 | 2 | G = small_group(8, 4)
|
3 | 3 | A = GroupAlgebra(QQ, G)
|
4 |
| - |
| 4 | + @test sprint(show, MIME"text/plain"(), A) isa String |
| 5 | + @test sprint(show, A) isa String |
5 | 6 | @testset "Regular matrix algebra" begin
|
6 | 7 | B, BtoA = Hecke.regular_matrix_algebra(A)
|
7 | 8 |
|
|
92 | 93 | QG = Hecke._group_algebra(QQ, G; sparse = true, cached = false)
|
93 | 94 | @test dim(QG) == factorial(10)
|
94 | 95 | #@test !is_commutative(QG) # needs https://github.com/Nemocas/AbstractAlgebra.jl/pull/1907
|
| 96 | + @test sprint(show, MIME"text/plain"(), QG) isa String |
| 97 | + @test sprint(show, QG) isa String |
95 | 98 | for i in 1:10
|
96 | 99 | a = rand(G)
|
97 | 100 | b = rand(G)
|
|
112 | 115 | QG = Hecke._group_algebra(QQ, G; sparse = true, cached = false)
|
113 | 116 | @test dim(QG) == 2 * 3 * 5000
|
114 | 117 | @test is_commutative(QG)
|
| 118 | + @test sprint(show, MIME"text/plain"(), QG) isa String |
| 119 | + @test sprint(show, QG) isa String |
115 | 120 | for i in 1:10
|
116 | 121 | a = rand(G)
|
117 | 122 | b = rand(G)
|
|
126 | 131 | @test (aa + bb)^2 == QG(a)^2 + cc + dd + QG(b)^2
|
127 | 132 | end
|
128 | 133 | end
|
| 134 | + |
| 135 | + let |
| 136 | + G = abelian_group([2, 3, 0]) |
| 137 | + QG = Hecke._group_algebra(QQ, G; sparse = true, cached = false) |
| 138 | + @test is_commutative(QG) |
| 139 | + @test sprint(show, MIME"text/plain"(), QG) isa String |
| 140 | + @test sprint(show, QG) isa String |
| 141 | + end |
129 | 142 | end
|
0 commit comments