Skip to content

Commit 703af5a

Browse files
committed
Rebase and fix test
1 parent 7863a8c commit 703af5a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

docs/src/submodules/Bridges/implementation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ julia> MOI.Bridges.runtests(
7979
""",
8080
)
8181
Test Summary: | Pass Total Time
82-
Bridges.runtests | 29 29 0.0s
82+
Bridges.runtests | 30 30 0.0s
8383
```
8484

8585
There are a number of other useful keyword arguments.
@@ -123,5 +123,5 @@ Subject to:
123123
ScalarAffineFunction{Int64}-in-LessThan{Int64}
124124
(0) - (1) x <= (-1)
125125
Test Summary: | Pass Total Time
126-
Bridges.runtests | 29 29 0.0s
126+
Bridges.runtests | 30 30 0.0s
127127
```

src/Bridges/Bridges.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ julia> MOI.Bridges.runtests(
283283
end,
284284
)
285285
Test Summary: | Pass Total Time
286-
Bridges.runtests | 32 32 0.8s
286+
Bridges.runtests | 33 33 0.8s
287287
```
288288
"""
289289
function runtests(args...; kwargs...)
@@ -444,7 +444,7 @@ julia> MOI.Bridges.runtests(
444444
\"\"\",
445445
)
446446
Test Summary: | Pass Total Time
447-
Bridges.runtests | 32 32 0.0s
447+
Bridges.runtests | 33 33 0.0s
448448
```
449449
"""
450450
function runtests(
@@ -520,7 +520,8 @@ function _general_bridge_tests(bridge::B) where {B<:AbstractBridge}
520520
end
521521

522522
function _check_bridged(model; no_bridge_used)
523-
unused = isempty(MOI.Bridges.Variable.bridges(model)) &&
523+
unused =
524+
isempty(MOI.Bridges.Variable.bridges(model)) &&
524525
isempty(MOI.Bridges.Constraint.bridges(model)) &&
525526
isempty(MOI.Bridges.Objective.bridges(model))
526527
Test.@test unused == no_bridge_used

test/Bridges/Objective/VectorSlackBridge.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ function test_runtests()
103103
"""
104104
variables: x
105105
maxobjective: [x]
106-
""",
106+
""";
107+
no_bridge_used = true,
107108
)
108109
return
109110
end

0 commit comments

Comments
 (0)