add tests for hash

This commit is contained in:
kalmar 2017-01-25 15:57:42 +01:00
parent 45e6eb47ea
commit 2bbe1a6b61
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,8 @@ end
@test isa(s*s, FGWord)
@test s*s == s^2
@test t*s s*t
@test Vector{GWord}([s,t]) == [s^2*s^-1, t]
@test hash([t^1,s^1]) == hash([t^2*inv(t),s*inv(s)*s])
end
@testset "eltary functions" begin
@test length(FGWord(s)) == 1
@ -60,6 +62,7 @@ end
@test isa(one(w), FGWord)
@test inv(s*t) == t^-1*s^-1
@test inv(w) == s*t^-1*s^-1
end
@testset "reductions" begin