Skip to content

Commit 6eb76a2

Browse files
committed
Add some printing tests
1 parent fcd8c93 commit 6eb76a2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/AlgAss/AlgGrp.jl

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@testset "Group algebras" begin
22
G = small_group(8, 4)
33
A = GroupAlgebra(QQ, G)
4-
4+
@test sprint(show, MIME"text/plain"(), A) isa String
5+
@test sprint(show, A) isa String
56
@testset "Regular matrix algebra" begin
67
B, BtoA = Hecke.regular_matrix_algebra(A)
78

@@ -92,6 +93,8 @@
9293
QG = Hecke._group_algebra(QQ, G; sparse = true, cached = false)
9394
@test dim(QG) == factorial(10)
9495
#@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
9598
for i in 1:10
9699
a = rand(G)
97100
b = rand(G)
@@ -112,6 +115,8 @@
112115
QG = Hecke._group_algebra(QQ, G; sparse = true, cached = false)
113116
@test dim(QG) == 2 * 3 * 5000
114117
@test is_commutative(QG)
118+
@test sprint(show, MIME"text/plain"(), QG) isa String
119+
@test sprint(show, QG) isa String
115120
for i in 1:10
116121
a = rand(G)
117122
b = rand(G)
@@ -126,4 +131,12 @@
126131
@test (aa + bb)^2 == QG(a)^2 + cc + dd + QG(b)^2
127132
end
128133
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
129142
end

0 commit comments

Comments
 (0)