2018-08-18 23:25:20 +02:00
|
|
|
using Base.Test
|
|
|
|
|
|
|
|
include("main.jl")
|
|
|
|
|
|
|
|
testdir = "tests_"*string(now())
|
|
|
|
mkdir(testdir)
|
2018-09-05 17:57:25 +02:00
|
|
|
include("logging.jl")
|
|
|
|
logger=setup_logging(joinpath(testdir, "tests.log"))
|
|
|
|
info(testdir)
|
|
|
|
|
2018-08-18 23:25:20 +02:00
|
|
|
cd(testdir)
|
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
# groupname = name(G)
|
|
|
|
# ub = PARSEDARGS["upper-bound"]
|
|
|
|
#
|
|
|
|
# fullpath = joinpath(groupname, string(ub))
|
|
|
|
# isdir(fullpath) || mkpath(fullpath)
|
|
|
|
|
|
|
|
separator(n=60) = info("\n"*("\n"*"="^n*"\n"^3)*"\n")
|
|
|
|
|
|
|
|
|
2018-08-20 03:24:49 +02:00
|
|
|
function SL_tests(args)
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
|
|
|
|
args["SL"] = 2
|
2018-08-18 23:25:20 +02:00
|
|
|
args["p"] = 3
|
2018-09-05 17:57:25 +02:00
|
|
|
G = PropertyTGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == true
|
2018-09-05 17:57:25 +02:00
|
|
|
separator()
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
let args = args
|
|
|
|
args["SL"] = 2
|
2018-08-18 23:25:20 +02:00
|
|
|
args["p"] = 5
|
2018-09-05 17:57:25 +02:00
|
|
|
G = PropertyTGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == false
|
2018-09-05 17:57:25 +02:00
|
|
|
separator()
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
args["warmstart"] = true
|
2018-09-05 17:57:25 +02:00
|
|
|
G = PropertyTGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == false
|
2018-09-05 17:57:25 +02:00
|
|
|
separator()
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
args["upper-bound"] = 0.1
|
|
|
|
G = PropertyTGroup(args)
|
|
|
|
@test main(G) == true
|
|
|
|
separator()
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
args["SL"] = 2
|
|
|
|
args["p"] = 7
|
|
|
|
G = PropertyTGroup(args)
|
|
|
|
@test main(G) == false
|
|
|
|
separator()
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
args["SL"] = 3
|
|
|
|
args["p"] = 7
|
|
|
|
G = PropertyTGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == true
|
2018-09-05 17:57:25 +02:00
|
|
|
separator()
|
|
|
|
|
|
|
|
# begin
|
|
|
|
# args["iterations"] = 25000
|
|
|
|
# args["N"] = 3
|
|
|
|
# args["p"] = 0
|
|
|
|
# args["upper-bound"] = Inf
|
|
|
|
#
|
|
|
|
# G = PropertyTGroups.SpecialLinearGroup(args)
|
|
|
|
# @test main(G) == false
|
|
|
|
# separator()
|
|
|
|
#
|
|
|
|
# args["warmstart"] = false
|
|
|
|
# args["upper-bound"] = 0.27
|
|
|
|
# G = PropertyTGroups.SpecialLinearGroup(args)
|
|
|
|
# @test main(G) == false
|
|
|
|
# separator()
|
|
|
|
#
|
|
|
|
# args["warmstart"] = true
|
|
|
|
# G = PropertyTGroups.SpecialLinearGroup(args)
|
|
|
|
# @test main(G) == true
|
|
|
|
# separator()
|
|
|
|
# end
|
|
|
|
|
|
|
|
return 0
|
|
|
|
end
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
function SAut_tests(args)
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
G = PropertyTGroup(args)
|
|
|
|
@test main(G) == false
|
|
|
|
separator()
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
args["warmstart"] = true
|
|
|
|
G = PropertyTGroup(args)
|
|
|
|
@test main(G) == false
|
|
|
|
separator()
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
args["upper-bound"] = 0.1
|
|
|
|
G = PropertyTGroup(args)
|
|
|
|
@test main(G) == false
|
|
|
|
separator()
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
return 0
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
@testset "Groups with(out) (T)" begin
|
2018-08-18 23:25:20 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
@testset "GAPGroups" begin
|
|
|
|
args = Dict(
|
|
|
|
"Higman" => true,
|
|
|
|
"iterations"=>5000,
|
|
|
|
"tol"=>1e-7,
|
|
|
|
"upper-bound"=>Inf,
|
|
|
|
"cpus"=>2,
|
|
|
|
"radius"=>2,
|
|
|
|
"warmstart"=>false,
|
|
|
|
"nosymmetry"=>true,
|
|
|
|
)
|
2018-08-20 03:24:49 +02:00
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
G = PropertyTGroup(args)
|
|
|
|
@test main(G) == false
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
args = Dict(
|
2018-09-05 17:57:25 +02:00
|
|
|
"Caprace" => true,
|
|
|
|
"iterations"=>5000,
|
2018-08-18 23:25:20 +02:00
|
|
|
"tol"=>1e-7,
|
|
|
|
"upper-bound"=>Inf,
|
|
|
|
"cpus"=>2,
|
|
|
|
"radius"=>2,
|
|
|
|
"warmstart"=>false,
|
|
|
|
"nosymmetry"=>true,
|
|
|
|
)
|
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
G = PropertyTGroup(args)
|
|
|
|
@test main(G) == false
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
args = Dict(
|
2018-09-05 17:57:25 +02:00
|
|
|
"MCG" => 3,
|
|
|
|
"iterations"=>5000,
|
2018-08-18 23:25:20 +02:00
|
|
|
"tol"=>1e-7,
|
|
|
|
"upper-bound"=>Inf,
|
|
|
|
"cpus"=>2,
|
|
|
|
"radius"=>2,
|
|
|
|
"warmstart"=>false,
|
2018-09-05 17:57:25 +02:00
|
|
|
"nosymmetry"=>true,
|
2018-08-18 23:25:20 +02:00
|
|
|
)
|
|
|
|
|
2018-09-05 17:57:25 +02:00
|
|
|
G = PropertyTGroup(args)
|
|
|
|
@test main(G) == false
|
|
|
|
end
|
|
|
|
|
|
|
|
@testset "SLn's" begin
|
|
|
|
@testset "Non-Symmetrized" begin
|
|
|
|
|
|
|
|
args = Dict(
|
|
|
|
"SL" => 2,
|
|
|
|
"p" => 3,
|
|
|
|
"X" => false,
|
|
|
|
"iterations"=>50000,
|
|
|
|
"tol"=>1e-7,
|
|
|
|
"upper-bound"=>Inf,
|
|
|
|
"cpus"=>2,
|
|
|
|
"radius"=>2,
|
|
|
|
"warmstart"=>false,
|
|
|
|
"nosymmetry"=>true,
|
|
|
|
)
|
|
|
|
|
|
|
|
SL_tests(args)
|
|
|
|
end
|
|
|
|
|
|
|
|
@testset "Symmetrized" begin
|
|
|
|
|
|
|
|
args = Dict(
|
|
|
|
"SL" => 2,
|
|
|
|
"p" => 3,
|
|
|
|
"X" => false,
|
|
|
|
"iterations"=>20000,
|
|
|
|
"tol"=>1e-7,
|
|
|
|
"upper-bound"=>Inf,
|
|
|
|
"cpus"=>2,
|
|
|
|
"radius"=>2,
|
|
|
|
"warmstart"=>false,
|
|
|
|
"nosymmetry"=>false,
|
|
|
|
)
|
|
|
|
|
|
|
|
SL_tests(args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
@testset "SAutF_n's" begin
|
|
|
|
|
|
|
|
@testset "Non-Symmetrized" begin
|
|
|
|
|
|
|
|
args = Dict(
|
|
|
|
"SAut" => 2,
|
|
|
|
"iterations"=>5000,
|
|
|
|
"tol"=>1e-7,
|
|
|
|
"upper-bound"=>Inf,
|
|
|
|
"cpus"=>2,
|
|
|
|
"radius"=>2,
|
|
|
|
"warmstart"=>false,
|
|
|
|
"nosymmetry"=>true,
|
|
|
|
)
|
|
|
|
SAut_tests(args)
|
|
|
|
end
|
|
|
|
|
|
|
|
@testset "Symmetrized" begin
|
|
|
|
args = Dict(
|
|
|
|
"SAut" => 3,
|
|
|
|
"iterations"=>500,
|
|
|
|
"tol"=>1e-7,
|
|
|
|
"upper-bound"=>Inf,
|
|
|
|
"cpus"=>2,
|
|
|
|
"radius"=>2,
|
|
|
|
"warmstart"=>false,
|
|
|
|
"nosymmetry"=>false,
|
|
|
|
)
|
|
|
|
SAut_tests(args)
|
|
|
|
end
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|
2018-09-05 17:57:25 +02:00
|
|
|
|
|
|
|
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|