Skip to content

Commit 5324966

Browse files
committed
Fix Variable/map tests
1 parent 0263677 commit 5324966

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Bridges/Variable/map.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ F1 = MOI.SingleVariable
1919
S1 = typeof(set1)
2020
v1, c1 = MOIB.Variable.add_key_for_bridge(map, b1, set1)
2121
@test v1.value == c1.value == -1
22-
@test Variable.constraint(map, v1) == c1
22+
@test MOIB.Variable.constraint(map, v1) == c1
2323
@test haskey(map, v1)
2424
@test map[v1] == b1
2525
@test MOIB.Variable.constrained_set(map, v1) == S1
@@ -49,7 +49,7 @@ v2, c2 = MOIB.Variable.add_keys_for_bridge(map, b2, set2)
4949
@test MOIB.Variable.has_keys(map, v2)
5050
@test !MOIB.Variable.has_keys(map, v2[4:-1:1])
5151
for i in 1:4
52-
@test Variable.constraint(map, v2[i]) == c2
52+
@test MOIB.Variable.constraint(map, v2[i]) == c2
5353
@test haskey(map, v2[i])
5454
@test map[v2[i]] == b2
5555
@test MOIB.Variable.constrained_set(map, v2[i]) == S2
@@ -129,7 +129,7 @@ elements = sort(collect(map), by = el -> el.second.id)
129129
@test !MOIB.Variable.has_keys(map, v2)
130130
@test MOIB.Variable.has_keys(map, v2[left])
131131
for (j, i) in enumerate(left)
132-
@test Variable.constraint(map, v2[i]) == c2
132+
@test MOIB.Variable.constraint(map, v2[i]) == c2
133133
@test haskey(map, v2[i])
134134
@test map[v2[i]] == b2
135135
@test MOIB.Variable.constrained_set(map, v2[i]) == S2
@@ -162,7 +162,7 @@ elements = sort(collect(map), by = el -> el.second.id)
162162
@test !MOIB.Variable.has_keys(map, v2[[1, 2, 4]])
163163
@test MOIB.Variable.has_keys(map, v2[left])
164164
for (j, i) in enumerate(left)
165-
@test Variable.constraint(map, v2[i]) == c2
165+
@test MOIB.Variable.constraint(map, v2[i]) == c2
166166
@test haskey(map, v2[i])
167167
@test map[v2[i]] == b2
168168
@test MOIB.Variable.constrained_set(map, v2[i]) == S2

0 commit comments

Comments
 (0)