2018-08-18 23:25:20 +02:00
|
|
|
using Base.Test
|
|
|
|
|
|
|
|
include("main.jl")
|
|
|
|
|
|
|
|
testdir = "tests_"*string(now())
|
|
|
|
info(testdir)
|
|
|
|
mkdir(testdir)
|
|
|
|
cd(testdir)
|
|
|
|
|
2018-08-20 03:24:49 +02:00
|
|
|
function SL_tests(args)
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
|
|
|
args["p"] = 3
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == true
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
println("\n"*"="^30*"\n")
|
|
|
|
|
|
|
|
begin
|
|
|
|
args["p"] = 5
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == false
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
args["warmstart"] = true
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == false
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
println("\n"*"="^30*"\n")
|
|
|
|
|
|
|
|
begin
|
|
|
|
args["p"] = 7
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == false
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
println("\n"*"="^30*"\n")
|
|
|
|
|
|
|
|
args["upper-bound"] = 0.25
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == false
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
println("\n"*"="^30*"\n")
|
|
|
|
|
|
|
|
args["N"] = 3
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == true
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
println("\n"*"="^30*"\n")
|
|
|
|
|
|
|
|
begin
|
|
|
|
args["p"] = 0
|
|
|
|
args["iterations"] = 50000
|
|
|
|
args["upper-bound"] = Inf
|
|
|
|
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == false
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
args["upper-bound"] = 0.27
|
|
|
|
args["warmstart"] = true
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == false
|
2018-08-18 23:25:20 +02:00
|
|
|
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == true
|
2018-08-18 23:25:20 +02:00
|
|
|
G = PropertyTGroups.SpecialLinearGroup(args)
|
2018-08-20 03:24:49 +02:00
|
|
|
@test main(G) == true
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|
|
|
|
|
2018-08-20 03:24:49 +02:00
|
|
|
return main(G)
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
@testset "SLn's" begin
|
|
|
|
|
2018-08-20 03:24:49 +02:00
|
|
|
|
2018-08-18 23:25:20 +02:00
|
|
|
@testset "Non-Symmetrized" begin
|
|
|
|
|
|
|
|
args = Dict(
|
|
|
|
"N" => 2,
|
|
|
|
"p" => 3,
|
|
|
|
"X" => false,
|
|
|
|
"iterations"=>50000,
|
|
|
|
"tol"=>1e-7,
|
|
|
|
"upper-bound"=>Inf,
|
|
|
|
"cpus"=>2,
|
|
|
|
"radius"=>2,
|
|
|
|
"warmstart"=>false,
|
|
|
|
"nosymmetry"=>true,
|
|
|
|
)
|
|
|
|
|
2018-08-20 03:24:49 +02:00
|
|
|
SL_tests(args)
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
@testset "Symmetrized" begin
|
|
|
|
|
|
|
|
args = Dict(
|
|
|
|
"N" => 2,
|
|
|
|
"p" => 3,
|
|
|
|
"X" => false,
|
|
|
|
"iterations"=>50000,
|
|
|
|
"tol"=>1e-7,
|
|
|
|
"upper-bound"=>Inf,
|
|
|
|
"cpus"=>2,
|
|
|
|
"radius"=>2,
|
|
|
|
"warmstart"=>false,
|
|
|
|
"nosymmetry"=>false,
|
|
|
|
)
|
|
|
|
|
2018-08-20 03:24:49 +02:00
|
|
|
SL_tests(args)
|
2018-08-18 23:25:20 +02:00
|
|
|
end
|
|
|
|
end
|