1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-07-17 10:55:33 +02:00
Groups.jl/test/runtests.jl

35 lines
813 B
Julia
Raw Normal View History

2018-09-21 18:08:44 +02:00
using Test
import AbstractAlgebra
2018-07-30 08:30:27 +02:00
using Groups
include("symmetric.jl")
2018-09-21 18:08:44 +02:00
using LinearAlgebra
2017-05-11 18:30:23 +02:00
@testset "Groups" begin
2020-10-09 15:29:19 +02:00
@testset "wlmetric_ball" begin
M = AbstractAlgebra.MatrixAlgebra(AbstractAlgebra.zz, 3)
w = one(M); w[1,2] = 1;
r = one(M); r[2,3] = -3;
s = one(M); s[1,3] = 2; s[3,2] = -1;
S = [w,r,s]; S = unique([S; inv.(S)]);
_, sizes = Groups.wlmetric_ball(S, radius=4);
@test sizes == [7, 33, 141, 561]
2020-10-09 17:37:57 +02:00
_, sizes = Groups.wlmetric_ball_serial(S, radius=4);
@test sizes == [7, 33, 141, 561]
end
2017-05-15 17:30:38 +02:00
include("FreeGroup-tests.jl")
2017-05-15 10:12:46 +02:00
include("AutGroup-tests.jl")
2019-11-15 23:32:04 +01:00
include("FPGroup-tests.jl")
2021-05-24 14:46:54 +02:00
@testset "New FPGroups" begin
using Groups.New
using KnuthBendix
include("free_groups.jl")
include("fp_groups.jl")
end
2017-01-23 16:53:33 +01:00
end