| 37 | } |
| 38 | |
| 39 | UNIT_TEST(AStarAlgorithm_Sample) |
| 40 | { |
| 41 | UndirectedGraph graph; |
| 42 | |
| 43 | // Inserts edges in a format: <source, target, weight>. |
| 44 | graph.AddEdge(0, 1, 10); |
| 45 | graph.AddEdge(1, 2, 5); |
| 46 | graph.AddEdge(2, 3, 5); |
| 47 | graph.AddEdge(2, 4, 10); |
| 48 | graph.AddEdge(3, 4, 3); |
| 49 | |
| 50 | vector<unsigned> const expectedRoute = {0, 1, 2, 3, 4}; |
| 51 | |
| 52 | TestAStar(graph, expectedRoute, 23); |
| 53 | } |
| 54 | |
| 55 | UNIT_TEST(AStarAlgorithm_CheckLength) |
| 56 | { |
nothing calls this directly
no test coverage detected