Skip to content

Commit 2a6c8cc

Browse files
committed
restored tests
1 parent f5a4acd commit 2a6c8cc

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

test/runtests.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ const is_APPVEYOR = ( Sys.iswindows() && haskey(ENV,"APPVEYOR") )
55
const is_TRAVIS = haskey(ENV,"TRAVIS")
66

77
if GROUP == "All"
8-
#@time @safetestset "Exact coloring via contraction" begin include("test_contraction.jl") end
9-
#@time @safetestset "Greedy distance-1 coloring" begin include("test_greedy_d1.jl") end
10-
#@time @safetestset "Greedy star coloring" begin include("test_greedy_star.jl") end
8+
@time @safetestset "Exact coloring via contraction" begin include("test_contraction.jl") end
9+
@time @safetestset "Greedy distance-1 coloring" begin include("test_greedy_d1.jl") end
10+
@time @safetestset "Greedy star coloring" begin include("test_greedy_star.jl") end
1111
@time @safetestset "Acyclic coloring" begin include("test_acyclic.jl") end
12-
#@time @safetestset "Matrix to graph conversion" begin include("test_matrix2graph.jl") end
13-
#@time @safetestset "AD using colorvec vector" begin include("test_ad.jl") end
14-
##@time @safetestset "Integration test" begin include("test_integration.jl") end
15-
#@time @safetestset "Special matrices" begin include("test_specialmatrices.jl") end
16-
#@time @safetestset "Jac Vecs and Hes Vecs" begin include("test_jaches_products.jl") end
12+
@time @safetestset "Matrix to graph conversion" begin include("test_matrix2graph.jl") end
13+
@time @safetestset "AD using colorvec vector" begin include("test_ad.jl") end
14+
@time @safetestset "Integration test" begin include("test_integration.jl") end
15+
@time @safetestset "Special matrices" begin include("test_specialmatrices.jl") end
16+
@time @safetestset "Jac Vecs and Hes Vecs" begin include("test_jaches_products.jl") end
1717
end
1818

1919
if GROUP == "GPU"

test/test_acyclic.jl

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Random.seed!(45)
1010
test_graphs = Vector{SimpleGraph}(undef, 0)
1111
test_graphs_dir = Vector{SimpleDiGraph}(undef, 0)
1212

13-
for _ in 1:6
13+
for _ in 1:5
1414
nv = rand(5:20)
1515
ne = rand(1:100)
1616
graph = SimpleGraph(nv)
@@ -98,17 +98,9 @@ end
9898
for i in 1:5
9999
g = test_graphs[i]
100100
dg = test_graphs_dir[i]
101-
println("Testing graph $i")
102-
n_v = nv(g)
103-
n_e = ne(g)
104-
println("Number of vertices = $n_v, Number of edges = $n_e")
105-
println("Edges: ")
106-
for e in edges(g)
107-
println(e)
108-
end
109-
println()
101+
110102
out_colors = SparseDiffTools.color_graph(g, SparseDiffTools.AcyclicColoring())
111-
# println(out_colors)
103+
112104
#test condition 1
113105
for v in vertices(g)
114106
color = out_colors[v]
@@ -121,9 +113,9 @@ end
121113
for i in 3:4
122114
g = test_graphs[i]
123115
dg = test_graphs_dir[i]
124-
# println("testing graph $i")
116+
125117
out_colors = SparseDiffTools.color_graph(g, SparseDiffTools.AcyclicColoring())
126-
# println(out_colors)
118+
127119
#test condition 2
128120
cycles = simplecycles(dg)
129121
for c in cycles

0 commit comments

Comments
 (0)