mirror of
https://github.com/lscharen/iigs-sprite-compiler.git
synced 2024-12-21 01:29:59 +00:00
Simple fix for correcting unit tests
This commit is contained in:
parent
b20b85e7bc
commit
f1eeadb7f3
@ -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());
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user