1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-11-19 14:35:28 +01:00
Groups.jl/test/FPGroup-tests.jl

19 lines
461 B
Julia
Raw Normal View History

2019-11-15 23:32:04 +01:00
@testset "FPGroups definitions" begin
F = FreeGroup(["a", "b", "c"])
2020-03-25 05:25:02 +01:00
a,b,c = Groups.gens(F)
2019-11-15 23:32:04 +01:00
R = [a^2, a*b*a, c*b*a]
@test F/R isa FPGroup
@test F isa FreeGroup
G = F/R
2020-03-25 05:25:02 +01:00
A,B,C = Groups.gens(G)
2019-11-15 23:32:04 +01:00
2020-03-25 05:25:02 +01:00
@test Groups.reduce!(A^2) == one(G)
@test Groups.reduce!(A*B*A*A) == A
@test Groups.reduce!(A*A*B*A) == A
@test Groups.freepreimage(G) == F
@test Groups.freepreimage(B^2) == b^2
2019-11-15 23:32:04 +01:00
@test G/[B^2, C*B*C] isa FPGroup
end