Skip to content

Commit

Permalink
Hot fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dourouc05 committed Sep 16, 2021
1 parent 44894fe commit c06c42a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release Notes
=============

Version 0.6.2
-------------

Hotfix: test `test_strictly_greaterthan_singlevariable` was wrong.


Version 0.6.1
-------------

Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ConstraintProgrammingExtensions"
uuid = "b65d079e-ed98-51d9-b0db-edee61a5c5f8"
authors = ["Thibaut Cuvelier"]
version = "0.6.1"
version = "0.6.2"

[deps]
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
Expand Down
8 changes: 4 additions & 4 deletions src/Test/test_strictly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function test_strictly_greaterthan_singlevariable(
x2, _ = MOI.add_constrained_variable(model, MOI.Integer())

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

c3 = MOI.add_constraint(
model,
Expand All @@ -81,8 +81,8 @@ function test_strictly_greaterthan_singlevariable(
@test MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT

@test MOI.get(model, MOI.ResultCount()) >= 1
@test MOI.get(model, MOI.VariablePrimal(), x1) == 1
@test MOI.get(model, MOI.VariablePrimal(), x2) == 2
@test MOI.get(model, MOI.VariablePrimal(), x1) == 2
@test MOI.get(model, MOI.VariablePrimal(), x2) == 1
end
end

Expand All @@ -93,7 +93,7 @@ function MOIT.setup_test(
) where {T <: Real}
MOIU.set_mock_optimize!(
mock,
(mock::MOIU.MockOptimizer) -> MOIU.mock_optimize!(mock, T[1, 2]),
(mock::MOIU.MockOptimizer) -> MOIU.mock_optimize!(mock, T[2, 1]),
)
return
end

2 comments on commit c06c42a

@dourouc05
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/45046

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.2 -m "<description of version>" c06c42adadffb015e29e5b09c32b1579ceefeb2c
git push origin v0.6.2

Please sign in to comment.