Skip to content

Commit 6bd60fe

Browse files
committed
Disable protective check by default
1 parent 4e1638a commit 6bd60fe

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

test/23_test_problems.jl

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ function test_on_library(problems, dicts, alg_ops, broken_tests, ϵ = 1e-4;
1212
@testset "$idx: $(dict["title"])" begin
1313
for alg in alg_ops
1414
try
15-
sol = solve(nlprob, alg; maxiters = 10000,
16-
termination_condition = AbsNormTerminationMode())
15+
sol = solve(nlprob, alg; maxiters = 10000)
1716
problem(res, sol.u, nothing)
1817

1918
skip = skip_tests !== nothing && idx in skip_tests[alg]
@@ -101,18 +100,10 @@ end
101100
broken_tests[alg_ops[2]] = [1, 5, 6, 8, 11, 18]
102101
broken_tests[alg_ops[3]] = [1, 4, 5, 6, 9, 11]
103102
broken_tests[alg_ops[4]] = [1, 5, 6, 8, 11]
104-
broken_tests[alg_ops[5]] = [1, 3, 4, 5, 6, 8, 9, 11, 12, 15, 21]
105-
broken_tests[alg_ops[6]] = [3, 4, 5, 6, 8, 9, 11, 12, 21]
106-
107-
skip_tests = Dict(alg => Int[] for alg in alg_ops)
108-
skip_tests[alg_ops[1]] = [2, 22]
109-
skip_tests[alg_ops[2]] = [2, 22]
110-
skip_tests[alg_ops[3]] = [2, 22]
111-
skip_tests[alg_ops[4]] = [2, 22]
112-
skip_tests[alg_ops[5]] = [2, 22]
113-
skip_tests[alg_ops[6]] = [2, 22]
114-
115-
test_on_library(problems, dicts, alg_ops, broken_tests; skip_tests)
103+
broken_tests[alg_ops[5]] = [1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 15, 21]
104+
broken_tests[alg_ops[6]] = [2, 3, 4, 5, 6, 8, 9, 11, 12, 21, 22]
105+
106+
test_on_library(problems, dicts, alg_ops, broken_tests)
116107
end
117108

118109
@testset "Klement 23 Test Problems" begin

0 commit comments

Comments
 (0)