Skip to content

Commit 3ed7996

Browse files
committed
Improve the code coverage
1 parent 5021171 commit 3ed7996

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/small.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ end;
9797
"Arrowhead" => Dict(:direct => Dict(:all_colors => (0,0), :row_colors => (0,0), :column_colors => (0,0)),
9898
:substitution => Dict(:all_colors => (0,0), :row_colors => (0,0), :column_colors => (0,0))))
9999

100+
@testset "postprocessing_minimizes = :sym_colors" begin
101+
problem = ColoringProblem(; structure=:nonsymmetric, partition=:bidirectional)
102+
order = NaturalOrder()
103+
A = sparse([1 0 0 0; 0 1 0 0; 0 0 1 0; 0 0 0 1])
104+
105+
star_bicoloring_algorithm = GreedyColoringAlgorithm{:direct}(; postprocessing=true, postprocessing_minimizes=:sym_colors)
106+
@test_throws "The value postprocessing_minimizes = :sym_colors is not supported." coloring(A, problem, star_bicoloring_algorithm)
107+
108+
acyclic_bicoloring_algorithm = GreedyColoringAlgorithm{:substitution}(; postprocessing=true, postprocessing_minimizes=:sym_colors)
109+
@test_throws "The value postprocessing_minimizes = :sym_colors is not supported." coloring(A, problem, acyclic_bicoloring_algorithm)
110+
end
111+
100112
@testset "postprocessing_minimizes = $target" for target in (:all_colors, :row_colors, :column_colors)
101113
problem = ColoringProblem(; structure=:nonsymmetric, partition=:bidirectional)
102114
order = RandomOrder(StableRNG(0), 0)

0 commit comments

Comments
 (0)