diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2016-02-12 13:38:32 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:45:23 +0300 |
commit | 03c15cf7d59a56255a900439dd4ddf0d7a2a9021 (patch) | |
tree | 10a511991cf9ab69f9fdf07ba18fe1fd14043d5b /routing/routing_tests/astar_router_test.cpp | |
parent | 29013fc0ac9e26a771cbda935cc04f80d319fd53 (diff) |
More review fixes.
Diffstat (limited to 'routing/routing_tests/astar_router_test.cpp')
-rw-r--r-- | routing/routing_tests/astar_router_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routing/routing_tests/astar_router_test.cpp b/routing/routing_tests/astar_router_test.cpp index 12dc9f6753..e38422f9da 100644 --- a/routing/routing_tests/astar_router_test.cpp +++ b/routing/routing_tests/astar_router_test.cpp @@ -213,6 +213,7 @@ UNIT_TEST(AStarRouter_SimpleGraph_PickTheFasterRoad1) ()); TEST_EQUAL(result.path, vector<Junction>({m2::PointD(2,2), m2::PointD(2,3), m2::PointD(4,3), m2::PointD(6,3), m2::PointD(8,3), m2::PointD(10,3), m2::PointD(10,2)}), ()); + TEST(my::AlmostEqualAbs(result.distance, 159655., 1.), ("Distance error:", result.distance)); } UNIT_TEST(AStarRouter_SimpleGraph_PickTheFasterRoad2) @@ -239,6 +240,7 @@ UNIT_TEST(AStarRouter_SimpleGraph_PickTheFasterRoad2) algorithm.CalculateRoute(graph, m2::PointD(2, 2), m2::PointD(10, 2), delegate, result), ()); TEST_EQUAL(result.path, vector<Junction>({m2::PointD(2,2), m2::PointD(6,2), m2::PointD(10,2)}), ()); + TEST(my::AlmostEqualAbs(result.distance, 140663., 1.), ("Distance error:", result.distance)); } UNIT_TEST(AStarRouter_SimpleGraph_PickTheFasterRoad3) @@ -265,4 +267,5 @@ UNIT_TEST(AStarRouter_SimpleGraph_PickTheFasterRoad3) algorithm.CalculateRoute(graph, m2::PointD(2, 2), m2::PointD(10, 2), delegate, result), ()); TEST_EQUAL(result.path, vector<Junction>({m2::PointD(2,2), m2::PointD(2,1), m2::PointD(10,1), m2::PointD(10,2)}), ()); + TEST(my::AlmostEqualAbs(result.distance, 173616., 1.), ("Distance error:", result.distance)); } |