From 2bbe1a6b61be2a33526768137735ccd1013a2828 Mon Sep 17 00:00:00 2001 From: kalmar Date: Wed, 25 Jan 2017 15:57:42 +0100 Subject: [PATCH] add tests for hash --- test/runtests.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 51fa668..ff9dcd3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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