File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ by the model.
5959struct UnsupportedDeletion{IndexType<: Index } <: UnsupportedError
6060 message:: String
6161end
62+ function UnsupportedDeletion {IndexType} () where IndexType <: Index
63+ UnsupportedDeletion {IndexType} (" " )
64+ end
6265
6366function operation_name (:: UnsupportedDeletion{IndexType} ) where {IndexType<: Index }
6467 return " Deleting indices of type `$IndexType `"
Original file line number Diff line number Diff line change 44@testset " Fallbacks for `set!` methods" begin
55 model = DummyModel ()
66 ci = MOI. ConstraintIndex {MOI.SingleVariable, MOI.EqualTo{Float64}} (1 )
7+
8+ @test_throws MOI. UnsupportedDeletion{typeof (ci)} MOI. delete! (model, ci)
9+
710 @testset " ConstraintFunction" begin
811 vi = MOI. VariableIndex (1 )
912 @test_throws MOI. UnsupportedAttribute begin
You can’t perform that action at this time.
0 commit comments