File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -580,6 +580,11 @@ function test_model_copy_to_UnsupportedConstraint(
580
580
model:: MOI.ModelLike ,
581
581
:: Config{T} ,
582
582
) where {T}
583
+ @requires MOI. supports_constraint (
584
+ model,
585
+ MOI. VariableIndex,
586
+ MOI. EqualTo{T},
587
+ )
583
588
@test ! MOI. supports_constraint (
584
589
model,
585
590
MOI. VariableIndex,
@@ -608,6 +613,11 @@ function test_model_copy_to_UnsupportedAttribute(
608
613
model:: MOI.ModelLike ,
609
614
:: Config{T} ,
610
615
) where {T}
616
+ @requires MOI. supports_constraint (
617
+ model,
618
+ MOI. VariableIndex,
619
+ MOI. EqualTo{T},
620
+ )
611
621
# ModelAttribute
612
622
@test ! MOI. supports (model, UnknownModelAttribute ())
613
623
@test_throws (
@@ -747,6 +757,11 @@ function test_model_ScalarFunctionConstantNotZero(
747
757
config:: Config{T} ,
748
758
) where {T}
749
759
@requires _supports (config, MOI. ScalarFunctionConstantNotZero)
760
+ @requires MOI. supports_constraint (
761
+ model,
762
+ MOI. ScalarAffineFunction{T},
763
+ MOI. EqualTo{T},
764
+ )
750
765
function _error (S, value)
751
766
F = MOI. ScalarAffineFunction{T}
752
767
return MOI. ScalarFunctionConstantNotZero {T,F,S} (value)
You can’t perform that action at this time.
0 commit comments