Skip to content

Commit d077c2c

Browse files
committed
fix
1 parent e1ba22e commit d077c2c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

ortools/sat/csharp/SatSolverTests.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,21 @@ public void LinearExprNotBoolVarOperatorTest()
631631
{
632632
Console.WriteLine("LinearExprBoolVarNotOperatorTest");
633633
CpModel model = new CpModel();
634-
ILiteral v = model.NewBoolVar("v");TestInter
634+
ILiteral v = model.NewBoolVar("v");
635+
LinearExpr e = v.NotAsExpr() * 2;
636+
Console.WriteLine(e);
637+
e = 2 * v.NotAsExpr();
638+
Console.WriteLine(e);
639+
e = v.NotAsExpr() + 2;
640+
Console.WriteLine(e);
641+
e = 2 + v.NotAsExpr();
642+
Console.WriteLine(e);
643+
e = v.NotAsExpr();
644+
Console.WriteLine(e);
645+
e = -v.NotAsExpr();
646+
Console.WriteLine(e);
647+
e = 1 - v.NotAsExpr();
648+
Console.WriteLine(e);
635649
e = v.NotAsExpr() - 1;
636650
Console.WriteLine(e);
637651
}

0 commit comments

Comments
 (0)