Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jul 22, 2024
1 parent f24d33e commit f1a32a6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ortools/sat/csharp/SatSolverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,20 @@ public void LinearExprNotBoolVarOperatorTest()
Console.WriteLine("LinearExprBoolVarNotOperatorTest");
CpModel model = new CpModel();
ILiteral v = model.NewBoolVar("v");
LinearExpr e = v.NotAsExpr() * 2;
Console.WriteLine(e);
e = 2 * v.NotAsExpr();
Console.WriteLine(e);
e = v.NotAsExpr() + 2;
Console.WriteLine(e);
e = 2 + v.NotAsExpr();
Console.WriteLine(e);
e = v.NotAsExpr();
Console.WriteLine(e);
e = -v.NotAsExpr();
Console.WriteLine(e);
e = 1 - v.NotAsExpr();
Console.WriteLine(e);
e = v.NotAsExpr() - 1;
Console.WriteLine(e);
}
Expand Down

0 comments on commit f1a32a6

Please sign in to comment.