1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-11 06:56:28 +01:00

update FreeGroupsSymbols manipulation

This commit is contained in:
kalmar 2017-07-23 17:06:34 +02:00
parent cac6305852
commit f8dfa91980

View File

@ -23,10 +23,10 @@
end
end
@testset "FreeGroupElems" begin
@testset "FreeGroupSymbols manipulation" begin
s = Groups.FreeSymbol("s")
t = Groups.FreeSymbol("t", -2)
@testset "defines" begin
@test isa(Groups.GWord(s), Groups.GWord)
@test isa(Groups.GWord(s), FreeGroupElem)
@test isa(FreeGroupElem(s), Groups.GWord)
@ -35,18 +35,7 @@ end
@test isa(Vector{FreeGroupElem}([s,t]), Vector{FreeGroupElem})
@test length(FreeGroupElem(s)) == 1
@test length(FreeGroupElem(t)) == 2
end
@testset "eltary functions" begin
G = FreeGroup(["s", "t"])
s = G(s)
t = G(t)
@test Vector{Groups.GWord}([s,t]) == [Groups.GWord(s), Groups.GWord(t)]
@test (s*s).symbols == (s^2).symbols
@test hash([t^1,s^1]) == hash([t^2*inv(t),s*inv(s)*s])
end
end
@testset "FreeGroup" begin