diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2015-07-27 15:10:25 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:57:44 +0300 |
commit | 09ac7ca6e6895ad9acfbc26ebe2648c2eb49f47f (patch) | |
tree | 339d28f4d6f92deceac5ef87c3452a1499973b7d /pedestrian_routing_benchmarks | |
parent | b0cf9fa6f67957670a53c1e98482f470e749d1fc (diff) |
Use units in function names
Diffstat (limited to 'pedestrian_routing_benchmarks')
-rw-r--r-- | pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp b/pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp index f2f7d6b249..1e1f4e0e7b 100644 --- a/pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp +++ b/pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp @@ -101,7 +101,7 @@ void TestRouter(routing::IRouter & router, m2::PointD const & startPos, m2::Poin double const elapsedSec = timer.ElapsedSeconds(); TEST_EQUAL(routing::IRouter::NoError, resultCode, ()); LOG(LINFO, ("Route polyline size:", route.GetPoly().GetSize())); - LOG(LINFO, ("Route distance, meters:", route.GetTotalDistance())); + LOG(LINFO, ("Route distance, meters:", route.GetTotalDistanceMeters())); LOG(LINFO, ("Elapsed, seconds:", elapsedSec)); foundRoute.Swap(route); } @@ -119,7 +119,8 @@ void TestRouters(Index & index, m2::PointD const & startPos, m2::PointD const & TestRouter(*router, startPos, finalPos, routeFoundByAstar); double constexpr kEpsilon = 1e-6; - TEST(my::AlmostEqualAbs(routeFoundByAstar.GetTotalDistance(), routeFoundByAstarBidirectional.GetTotalDistance(), kEpsilon), ()); + TEST(my::AlmostEqualAbs(routeFoundByAstar.GetTotalDistanceMeters(), + routeFoundByAstarBidirectional.GetTotalDistanceMeters(), kEpsilon), ()); } void TestTwoPointsOnFeature(m2::PointD const & startPos, m2::PointD const & finalPos) |