Skip to content

Commit 5534d22

Browse files
committed
Update
1 parent a13471f commit 5534d22

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Bridges/Variable/NonposToNonnegBridge.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ function test_NonposToNonneg()
4040
)
4141
@test MOI.get(mock, MOI.NumberOfVariables()) == 4
4242
@test MOI.get(bridged_mock, MOI.NumberOfVariables()) == 4
43+
# Variables are ordered
44+
# x in R^1, y in R_-^1, z in R^1, s in R^1
4345
vis = MOI.get(bridged_mock, MOI.ListOfVariableIndices())
44-
y = vis[4]
46+
y = vis[2]
4547
@test y.value == -1
4648

4749
@test MOI.supports(
@@ -90,7 +92,7 @@ function test_NonposToNonneg()
9092
MOI.set(
9193
bridged_mock,
9294
MOI.VariableName(),
93-
MOI.get(bridged_mock, MOI.ListOfVariableIndices())[4],
95+
MOI.get(bridged_mock, MOI.ListOfVariableIndices())[2],
9496
"v",
9597
)
9698
con_v = MOI.get(

0 commit comments

Comments
 (0)