Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Test/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ function _test_model_solution(
)
end
end
if constraint_primal !== nothing &&
_supports(config, MOI.ConstraintPrimal())
if constraint_primal !== nothing && _supports(config, MOI.ConstraintPrimal)
@test MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
for (index, solution_value) in constraint_primal
@test isapprox(
Expand All @@ -374,7 +373,7 @@ function _test_model_solution(
)
end
end
if constraint_dual !== nothing && _supports(config, MOI.ConstraintDual())
if constraint_dual !== nothing && _supports(config, MOI.ConstraintDual)
@test MOI.get(model, MOI.DualStatus()) == MOI.FEASIBLE_POINT
for (index, solution_value) in constraint_dual
@test isapprox(
Expand Down