Skip to content

Commit

Permalink
fix: show for infinite dim group algebras
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Nov 18, 2024
1 parent 5c0f386 commit fcd8c93
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/AlgAss/AlgGrp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,21 @@ end

function show(io::IO, A::GroupAlgebra)
if is_terse(io)
print(io, "Group algebra of dimension ", dim(A), " over ", base_ring(A))
print(io, "Group algebra of ")
if is_finite(group(A))
print(io, "dimension ", order(group(A)))

Check warning on line 176 in src/AlgAss/AlgGrp.jl

View check run for this annotation

Codecov / codecov/patch

src/AlgAss/AlgGrp.jl#L174-L176

Added lines #L174 - L176 were not covered by tests
else
print(io, "infinite dimension ")

Check warning on line 178 in src/AlgAss/AlgGrp.jl

View check run for this annotation

Codecov / codecov/patch

src/AlgAss/AlgGrp.jl#L178

Added line #L178 was not covered by tests
end
print(io, " over ", base_ring(A))

Check warning on line 180 in src/AlgAss/AlgGrp.jl

View check run for this annotation

Codecov / codecov/patch

src/AlgAss/AlgGrp.jl#L180

Added line #L180 was not covered by tests
else
print(io, "Group algebra of group of order ", order(group(A)), " over ")
print(io, "Group algebra of group ")
if is_finite(group(A))
print(io, "of order ", order(group(A)))

Check warning on line 184 in src/AlgAss/AlgGrp.jl

View check run for this annotation

Codecov / codecov/patch

src/AlgAss/AlgGrp.jl#L182-L184

Added lines #L182 - L184 were not covered by tests
else
print(io, "of infinite order ")

Check warning on line 186 in src/AlgAss/AlgGrp.jl

View check run for this annotation

Codecov / codecov/patch

src/AlgAss/AlgGrp.jl#L186

Added line #L186 was not covered by tests
end
print(io, "over ")

Check warning on line 188 in src/AlgAss/AlgGrp.jl

View check run for this annotation

Codecov / codecov/patch

src/AlgAss/AlgGrp.jl#L188

Added line #L188 was not covered by tests
print(terse(io), base_ring(A))
end
end
Expand Down

0 comments on commit fcd8c93

Please sign in to comment.