Skip to content

Commit 2237f13

Browse files
committed
Fix
1 parent 29ee27a commit 2237f13

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/utils.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,16 @@ function qp_test(
273273
@test pprod pprod atol = ATOL rtol = RTOL
274274
end
275275

276+
function qp_test(solver, lt, set_zero, canonicalize; kws...)
277+
@testset "With $diff_model" for diff_model in [DiffOpt.ConicProgram.Model, DiffOpt.QuadraticProgram.Model]
278+
qp_test(solver, diff_model, lt, set_zero, canonicalize; kws...)
279+
end
280+
end
281+
276282
function qp_test(solver; kws...)
277283
@testset "With $(lt ? "LessThan" : "GreaterThan") constraints" for lt in [true, false]
278284
@testset "With$(set_zero ? "" : "out") setting zero tangents" for set_zero in [true, false]
279285
@testset "With$(canonicalize ? "" : "out") canonicalization" for canonicalize in [true, false]
280-
@testset "With $diff_model" for diff_model in [DiffOpt.ConicProgram.Model, DiffOpt.QuadraticProgram.Model]
281-
qp_test(solver, diff_model, lt, set_zero, canonicalize; kws...)
282-
end
283286
end
284287
end
285288
end

0 commit comments

Comments
 (0)