Review fixes.

This commit is contained in:
Vladimir Byko-Ianko 2016-06-15 16:51:18 +03:00
parent 671d43a775
commit 0fcaebebae

View file

@ -143,6 +143,10 @@ void TestRouter(routing::IRouter & router, m2::PointD const & startPos, m2::Poin
startPos, m2::PointD::Zero() /* startDirection */, finalPos, delegate, route);
double const elapsedSec = timer.ElapsedSeconds();
TEST_EQUAL(routing::IRouter::NoError, resultCode, ());
TEST(route.IsValid(), ());
m2::PolylineD const & poly = route.GetPoly();
TEST(my::AlmostEqualAbs(poly.Front(), startPos, routing::kPointsEqualEpsilon), ());
TEST(my::AlmostEqualAbs(poly.Back(), finalPos, routing::kPointsEqualEpsilon), ());
LOG(LINFO, ("Route polyline size:", route.GetPoly().GetSize()));
LOG(LINFO, ("Route distance, meters:", route.GetTotalDistanceMeters()));
LOG(LINFO, ("Elapsed, seconds:", elapsedSec));