mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-24 18:05:27 +01:00
add tests for hash
This commit is contained in:
parent
45e6eb47ea
commit
2bbe1a6b61
@ -47,6 +47,8 @@ end
|
|||||||
@test isa(s*s, FGWord)
|
@test isa(s*s, FGWord)
|
||||||
@test s*s == s^2
|
@test s*s == s^2
|
||||||
@test t*s ≠ s*t
|
@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
|
end
|
||||||
@testset "eltary functions" begin
|
@testset "eltary functions" begin
|
||||||
@test length(FGWord(s)) == 1
|
@test length(FGWord(s)) == 1
|
||||||
@ -60,6 +62,7 @@ end
|
|||||||
@test isa(one(w), FGWord)
|
@test isa(one(w), FGWord)
|
||||||
@test inv(s*t) == t^-1*s^-1
|
@test inv(s*t) == t^-1*s^-1
|
||||||
@test inv(w) == s*t^-1*s^-1
|
@test inv(w) == s*t^-1*s^-1
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@testset "reductions" begin
|
@testset "reductions" begin
|
||||||
|
Loading…
Reference in New Issue
Block a user