fix: specialize printing for Type{<:Automorphism}

This commit is contained in:
Marek Kaluba 2021-12-13 09:54:32 +01:00
parent d82f109e45
commit e770990d35
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
2 changed files with 3 additions and 3 deletions

View File

@ -79,8 +79,8 @@ end
# eye-candy
Base.show(io::IO, ::Type{<:AbstractFPGroupElement{<:AutomorphismGroup{T}}}) where {T} =
print(io, "Automorphism{$T,…}")
Base.show(io::IO, ::Type{<:FPGroupElement{<:AutomorphismGroup{T}}}) where {T} =
print(io, "Automorphism{$T, …}")
Base.show(io::IO, A::AutomorphismGroup) = print(io, "automorphism group of ", object(A))

View File

@ -96,7 +96,7 @@
@test evaluate(g*h) == evaluate(h*g)
@test (g*h).savedhash == zero(UInt)
@test sprint(show, typeof(g)) == "Automorphism{FreeGroup{Symbol},…}"
@test sprint(show, typeof(g)) == "Automorphism{FreeGroup{Symbol}, …}"
a = g*h
b = h*g