Skip to content

Commit c06c42a

Browse files
committed
Hot fix.
1 parent 44894fe commit c06c42a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

NEWS.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Release Notes
22
=============
33

4+
Version 0.6.2
5+
-------------
6+
7+
Hotfix: test `test_strictly_greaterthan_singlevariable` was wrong.
8+
9+
410
Version 0.6.1
511
-------------
612

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ConstraintProgrammingExtensions"
22
uuid = "b65d079e-ed98-51d9-b0db-edee61a5c5f8"
33
authors = ["Thibaut Cuvelier"]
4-
version = "0.6.1"
4+
version = "0.6.2"
55

66
[deps]
77
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"

src/Test/test_strictly.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function test_strictly_greaterthan_singlevariable(
6161
x2, _ = MOI.add_constrained_variable(model, MOI.Integer())
6262

6363
c1 = MOI.add_constraint(model, one(T) * x1, CP.Domain(Set([1, 2])))
64-
c2 = MOI.add_constraint(model, one(T) * x2, MOI.EqualTo(2))
64+
c2 = MOI.add_constraint(model, one(T) * x2, MOI.EqualTo(1))
6565

6666
c3 = MOI.add_constraint(
6767
model,
@@ -81,8 +81,8 @@ function test_strictly_greaterthan_singlevariable(
8181
@test MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
8282

8383
@test MOI.get(model, MOI.ResultCount()) >= 1
84-
@test MOI.get(model, MOI.VariablePrimal(), x1) == 1
85-
@test MOI.get(model, MOI.VariablePrimal(), x2) == 2
84+
@test MOI.get(model, MOI.VariablePrimal(), x1) == 2
85+
@test MOI.get(model, MOI.VariablePrimal(), x2) == 1
8686
end
8787
end
8888

@@ -93,7 +93,7 @@ function MOIT.setup_test(
9393
) where {T <: Real}
9494
MOIU.set_mock_optimize!(
9595
mock,
96-
(mock::MOIU.MockOptimizer) -> MOIU.mock_optimize!(mock, T[1, 2]),
96+
(mock::MOIU.MockOptimizer) -> MOIU.mock_optimize!(mock, T[2, 1]),
9797
)
9898
return
9999
end

0 commit comments

Comments
 (0)