Simple fix for correcting unit tests

This commit is contained in:
Lucas Scharenbroich 2016-11-29 00:54:37 -06:00
parent b20b85e7bc
commit f1eeadb7f3
2 changed files with 3 additions and 3 deletions

View File

@ -47,10 +47,10 @@ namespace SpriteCompiler.Test
// LONG A = 14 cycles
Assert.AreEqual(5, solution.Count());
Assert.AreEqual(14, solution.First().PathCost);
Assert.AreEqual(14, (int)solution.Last().PathCost);
// Write out the solution
foreach (var step in solution)
foreach (var step in solution.Skip(1))
{
Trace.WriteLine(step.Action.ToString());
}

View File

@ -25,7 +25,7 @@ namespace SpriteCompiler.Problem
// Helper function for ToString implementations
protected string FormatLine(string label, string opcode, string operand, string comment)
{
return String.Format("{0}\t{1}\t{2}\t; {3}");
return String.Format("{0}\t{1}\t{2}\t; {3}", label, opcode, operand, comment);
}
}