From 549992ff9319dd2c2ee7fa62b824e935bd6aa3d7 Mon Sep 17 00:00:00 2001 From: odow Date: Tue, 10 Aug 2021 14:04:15 +1200 Subject: [PATCH] [Test] fix bug in skipping ConstraintDual --- src/Test/Test.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Test/Test.jl b/src/Test/Test.jl index 622071b2df..6a980c4ec8 100644 --- a/src/Test/Test.jl +++ b/src/Test/Test.jl @@ -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( @@ -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(