Skip to content

Commit

Permalink
sat: Cleanup SatSolverTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jul 22, 2024
1 parent 8356706 commit f7cb161
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ortools/sat/csharp/SatSolverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SolutionCounter : CpSolverSolutionCallback
{
public SolutionCounter()
{
Console.WriteLine("SolutionCounter Ctor");
// Console.WriteLine("SolutionCounter Ctor");
solution_count_ = 0;
}

Expand Down Expand Up @@ -55,7 +55,7 @@ public override void OnSolutionCallback()
base.OnSolutionCallback();
foreach (IntVar v in new IntVar[] { a_, b_ })
{
Console.Write(String.Format("{0}={1} ", v.ToString(), Value(v)));
Console.Write($"{v.ToString()}={Value(v)} ");
}
Console.WriteLine();
Assert.Equal(result_, Value(a_) / Value(b_));
Expand All @@ -80,7 +80,7 @@ public override void OnSolutionCallback()
base.OnSolutionCallback();
foreach (IntVar v in new IntVar[] { a_, b_ })
{
Console.Write(String.Format("{0}={1} ", v.ToString(), Value(v)));
Console.Write($"{v.ToString()}={Value(v)} ");
}
Console.WriteLine();
Assert.Equal(result_, Value(a_) % Value(b_));
Expand Down

0 comments on commit f7cb161

Please sign in to comment.