File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -580,6 +580,7 @@ function test_model_copy_to_UnsupportedConstraint(
580
580
model:: MOI.ModelLike ,
581
581
:: Config{T} ,
582
582
) where {T}
583
+ @requires MOI. supports_constraint (model, MOI. VariableIndex, MOI. EqualTo{T})
583
584
@test ! MOI. supports_constraint (
584
585
model,
585
586
MOI. VariableIndex,
@@ -608,6 +609,7 @@ function test_model_copy_to_UnsupportedAttribute(
608
609
model:: MOI.ModelLike ,
609
610
:: Config{T} ,
610
611
) where {T}
612
+ @requires MOI. supports_constraint (model, MOI. VariableIndex, MOI. EqualTo{T})
611
613
# ModelAttribute
612
614
@test ! MOI. supports (model, UnknownModelAttribute ())
613
615
@test_throws (
@@ -747,6 +749,11 @@ function test_model_ScalarFunctionConstantNotZero(
747
749
config:: Config{T} ,
748
750
) where {T}
749
751
@requires _supports (config, MOI. ScalarFunctionConstantNotZero)
752
+ @requires MOI. supports_constraint (
753
+ model,
754
+ MOI. ScalarAffineFunction{T},
755
+ MOI. EqualTo{T},
756
+ )
750
757
function _error (S, value)
751
758
F = MOI. ScalarAffineFunction{T}
752
759
return MOI. ScalarFunctionConstantNotZero {T,F,S} (value)
You can’t perform that action at this time.
0 commit comments