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: 3 additions & 2 deletions src/Bridges/Bridges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ function _test_structural_identical(
constraints = Dict{Any,Any}()
a_constraint_types = MOI.get(a, MOI.ListOfConstraintTypesPresent())
b_constraint_types = MOI.get(b, MOI.ListOfConstraintTypesPresent())
Test.@testset "get $F and $S" for (F, S) in a_constraint_types
_name(F, S) = MOI.Utilities._drop_moi("$F-in-$S")
Test.@testset "get $(_name(F, S))" for (F, S) in a_constraint_types
Test.@test MOI.supports_constraint(a, F, S)
constraints[(F, S)] =
map(MOI.get(a, MOI.ListOfConstraintIndices{F,S}())) do ci
Expand All @@ -190,7 +191,7 @@ function _test_structural_identical(
Test.@test (F, S) in b_constraint_types ||
MOI.get(a, MOI.NumberOfConstraints{F,S}()) == 0
end # COV_EXCL_LINE
Test.@testset "$F-in-$S" for (F, S) in b_constraint_types
Test.@testset "$(_name(F, S))" for (F, S) in b_constraint_types
Test.@test haskey(constraints, (F, S))
# Check that the same number of constraints are present
Test.@test MOI.get(a, MOI.NumberOfConstraints{F,S}()) ==
Expand Down
Loading