Skip to content

Commit

Permalink
fix borked tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Felix committed Nov 21, 2023
1 parent bac108b commit 1e6009c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/ExactlyKOfTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void ExactlyKPositiveStatic(Model.KOfMethod? _method)
else
v[i] = Model.False;

m.AddConstr(m.AtMostKOf(v, k));
m.AddConstr(m.ExactlyKOf(v, k));
m.Solve();

if (pos == k)
Expand Down Expand Up @@ -163,7 +163,7 @@ public void ExactlyKNegativeStatic(Model.KOfMethod? _method)
else
v[i] = Model.False;

m.AddConstr(m.AtMostKOf(v, k));
m.AddConstr(!m.ExactlyKOf(v, k));
m.Solve();

if (pos != k)
Expand Down

0 comments on commit 1e6009c

Please sign in to comment.