| 26 | using namespace std; |
| 27 | |
| 28 | void TestAStarRouterMock(geometry::PointWithAltitude const & startPos, geometry::PointWithAltitude const & finalPos, |
| 29 | vector<geometry::PointWithAltitude> const & expected) |
| 30 | { |
| 31 | classificator::Load(); |
| 32 | |
| 33 | RoadGraphMockSource graph; |
| 34 | InitRoadGraphMockSourceWithTest2(graph); |
| 35 | |
| 36 | RoutingResult<geometry::PointWithAltitude, double /* Weight */> result; |
| 37 | TestAStarBidirectionalAlgo algorithm; |
| 38 | TEST_EQUAL(TestAStarBidirectionalAlgo::Result::OK, algorithm.CalculateRoute(graph, startPos, finalPos, result), ()); |
| 39 | |
| 40 | TEST_EQUAL(expected, result.m_path, ()); |
| 41 | } |
| 42 | |
| 43 | void AddRoad(RoadGraphMockSource & graph, double speedKMPH, initializer_list<m2::PointD> const & points) |
| 44 | { |
no test coverage detected