Skip to content

Commit 54e04e4

Browse files
authored
Shorter testset name for Bridges.runtests (#2734)
1 parent dadc879 commit 54e04e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Bridges/Bridges.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +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-
Test.@testset "get $F and $S" for (F, S) in a_constraint_types
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
180181
Test.@test MOI.supports_constraint(a, F, S)
181182
constraints[(F, S)] =
182183
map(MOI.get(a, MOI.ListOfConstraintIndices{F,S}())) do ci
@@ -190,7 +191,7 @@ function _test_structural_identical(
190191
Test.@test (F, S) in b_constraint_types ||
191192
MOI.get(a, MOI.NumberOfConstraints{F,S}()) == 0
192193
end # COV_EXCL_LINE
193-
Test.@testset "$F-in-$S" for (F, S) in b_constraint_types
194+
Test.@testset "$(_name(F, S))" for (F, S) in b_constraint_types
194195
Test.@test haskey(constraints, (F, S))
195196
# Check that the same number of constraints are present
196197
Test.@test MOI.get(a, MOI.NumberOfConstraints{F,S}()) ==

0 commit comments

Comments
 (0)