Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-06-15 16:51:18 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-06-23 19:56:13 +0300
commit0fcaebebae764a2ec8d68f51c247edb8b9b30d30 (patch)
treeed3507fb58d955f3c3a195facc6ff84788f45571 /pedestrian_routing_tests
parent671d43a7750f2361f0f5bf184cb8af129faff860 (diff)
Review fixes.
Diffstat (limited to 'pedestrian_routing_tests')
-rw-r--r--pedestrian_routing_tests/pedestrian_routing_tests.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/pedestrian_routing_tests/pedestrian_routing_tests.cpp b/pedestrian_routing_tests/pedestrian_routing_tests.cpp
index 95632a8372..c21b792ac0 100644
--- a/pedestrian_routing_tests/pedestrian_routing_tests.cpp
+++ b/pedestrian_routing_tests/pedestrian_routing_tests.cpp
@@ -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));