Skip to content

Commit f1a32a6

Browse files
committed
fix
1 parent f24d33e commit f1a32a6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ortools/sat/csharp/SatSolverTests.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,20 @@ public void LinearExprNotBoolVarOperatorTest()
632632
Console.WriteLine("LinearExprBoolVarNotOperatorTest");
633633
CpModel model = new CpModel();
634634
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)