1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 18:15:29 +01:00

test for abelianize of Identity

This commit is contained in:
kalmarek 2020-04-20 02:44:28 +02:00
parent 834a8eb107
commit 51f3ad6cdb
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -266,6 +266,8 @@
@test Groups.abelianize(σ^3) == Matrix{Int}(I, N, N)
@test Groups.abelianize(σ)^3 == Matrix{Int}(I, N, N)
@test Groups.abelianize(G(Groups.id_autsymbol())) == Matrix{Int}(I, N, N)
function test_homomorphism(S, r)
for elts in Iterators.product([[g for g in S] for _ in 1:r]...)
prod(Groups.abelianize.(elts)) == Groups.abelianize(prod(elts)) || error("linear representaton test failed at $elts")