[routing] Itegration tests bad turns counter fix.

This commit is contained in:
Lev Dragunov 2015-08-19 14:35:31 +03:00 committed by Alex Zolotarev
parent ec7362ca60
commit 20e99ffe09

View file

@ -210,7 +210,8 @@ namespace integration
void TestTurnCount(routing::Route const & route, uint32_t expectedTurnCount)
{
TEST_EQUAL(route.GetTurns().size(), expectedTurnCount, ());
// We use -1 for ignoring the "ReachedYourDestination" turn record.
TEST_EQUAL(route.GetTurns().size() - 1, expectedTurnCount, ());
}
void TestRouteLength(Route const & route, double expectedRouteMeters,