Skip to content

Commit 2922cc9

Browse files
authored
Update Bridges.jl
1 parent bddfc9e commit 2922cc9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Bridges/Bridges.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,8 @@ function _test_structural_identical(
176176
constraints = Dict{Any,Any}()
177177
a_constraint_types = MOI.get(a, MOI.ListOfConstraintTypesPresent())
178178
b_constraint_types = MOI.get(b, MOI.ListOfConstraintTypesPresent())
179-
_str(T) = MOI.Utilities._drop_moi(string(T))
180-
Test.@testset "get $(_str(F)) and $(_str(S))" for (F, S) in
181-
a_constraint_types
182-
179+
_name(F, S) = MOI.Utilities._drop_moi("$F-in-$S")
180+
Test.@testset "get $(_name(F, S))" for (F, S) in a_constraint_types
183181
Test.@test MOI.supports_constraint(a, F, S)
184182
constraints[(F, S)] =
185183
map(MOI.get(a, MOI.ListOfConstraintIndices{F,S}())) do ci
@@ -193,7 +191,7 @@ function _test_structural_identical(
193191
Test.@test (F, S) in b_constraint_types ||
194192
MOI.get(a, MOI.NumberOfConstraints{F,S}()) == 0
195193
end # COV_EXCL_LINE
196-
Test.@testset "$(_str(F))-in-$(_str(S))" for (F, S) in b_constraint_types
194+
Test.@testset "$(_name(F, S))" for (F, S) in b_constraint_types
197195
Test.@test haskey(constraints, (F, S))
198196
# Check that the same number of constraints are present
199197
Test.@test MOI.get(a, MOI.NumberOfConstraints{F,S}()) ==

0 commit comments

Comments
 (0)