Added debug output to determine fix for failing regression test.

This commit is contained in:
David Williams 2011-07-05 22:41:24 +01:00
parent 9ed7147807
commit 312ec846b5

View File

@ -117,6 +117,12 @@ void TestAStarPathfinder::testExecute()
//Execute the pathfinder.
pathfinder.execute();
for(std::list<Vector3DInt32>::iterator iterResult = result.begin(); iterResult != result.end(); iterResult++)
{
Vector3DInt32 res = *iterResult;
std::cout << "Vector3DInt32(" << res.getX() << "," << res.getY() << "," << res.getZ() << ")," << std::endl;
}
//Make sure the right number of steps were created.
QCOMPARE(result.size(), static_cast<size_t>(24));