Skip to content

Commit bddfc9e

Browse files
committed
Shorter testset name for Bridges.runtests
1 parent dadc879 commit bddfc9e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Bridges/Bridges.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ 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+
_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+
180183
Test.@test MOI.supports_constraint(a, F, S)
181184
constraints[(F, S)] =
182185
map(MOI.get(a, MOI.ListOfConstraintIndices{F,S}())) do ci
@@ -190,7 +193,7 @@ function _test_structural_identical(
190193
Test.@test (F, S) in b_constraint_types ||
191194
MOI.get(a, MOI.NumberOfConstraints{F,S}()) == 0
192195
end # COV_EXCL_LINE
193-
Test.@testset "$F-in-$S" for (F, S) in b_constraint_types
196+
Test.@testset "$(_str(F))-in-$(_str(S))" for (F, S) in b_constraint_types
194197
Test.@test haskey(constraints, (F, S))
195198
# Check that the same number of constraints are present
196199
Test.@test MOI.get(a, MOI.NumberOfConstraints{F,S}()) ==

0 commit comments

Comments
 (0)