use equality_data for checking ==

(defaults to word)
This commit is contained in:
Marek Kaluba 2021-12-11 13:53:17 +01:00
parent 80f7f6e08a
commit f883b5172e
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ function Base.:(==)(g::AbstractFPGroupElement, h::AbstractFPGroupElement)
normalform!(g)
normalform!(h)
hash(g) != hash(h) && return false
return word(g) == word(h)
return equality_data(g) == equality_data(h)
end
function Base.deepcopy_internal(g::FPGroupElement, stackdict::IdDict)