forked from organicmaps/organicmaps
Review fixes.
This commit is contained in:
parent
671d43a775
commit
0fcaebebae
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue