mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -65,9 +65,8 @@ UNIT_TEST(AStarAlgorithm_CheckLength)
|
||||
|
||||
auto checkLength = [](double weight) { return weight < 23; };
|
||||
Algorithm algo;
|
||||
Algorithm::ParamsForTests<decltype(checkLength)> params(
|
||||
graph, 0u /* startVertex */, 4u /* finishVertex */,
|
||||
std::move(checkLength));
|
||||
Algorithm::ParamsForTests<decltype(checkLength)> params(graph, 0u /* startVertex */, 4u /* finishVertex */,
|
||||
std::move(checkLength));
|
||||
|
||||
RoutingResult<unsigned /* Vertex */, double /* Weight */> routingResult;
|
||||
Algorithm::Result result = algo.FindPath(params, routingResult);
|
||||
@@ -96,8 +95,8 @@ UNIT_TEST(AdjustRoute)
|
||||
|
||||
auto checkLength = [](double weight) { return weight <= 1.0; };
|
||||
Algorithm algo;
|
||||
Algorithm::ParamsForTests<decltype(checkLength)> params(
|
||||
graph, 6 /* startVertex */, {} /* finishVertex */, std::move(checkLength));
|
||||
Algorithm::ParamsForTests<decltype(checkLength)> params(graph, 6 /* startVertex */, {} /* finishVertex */,
|
||||
std::move(checkLength));
|
||||
|
||||
RoutingResult<unsigned /* Vertex */, double /* Weight */> result;
|
||||
auto const code = algo.AdjustRoute(params, prevRoute, result);
|
||||
@@ -120,8 +119,8 @@ UNIT_TEST(AdjustRouteNoPath)
|
||||
|
||||
auto checkLength = [](double weight) { return weight <= 1.0; };
|
||||
Algorithm algo;
|
||||
Algorithm::ParamsForTests<decltype(checkLength)> params(
|
||||
graph, 6 /* startVertex */, {} /* finishVertex */, std::move(checkLength));
|
||||
Algorithm::ParamsForTests<decltype(checkLength)> params(graph, 6 /* startVertex */, {} /* finishVertex */,
|
||||
std::move(checkLength));
|
||||
RoutingResult<unsigned /* Vertex */, double /* Weight */> result;
|
||||
auto const code = algo.AdjustRoute(params, prevRoute, result);
|
||||
|
||||
@@ -143,8 +142,8 @@ UNIT_TEST(AdjustRouteOutOfLimit)
|
||||
|
||||
auto checkLength = [](double weight) { return weight <= 1.0; };
|
||||
Algorithm algo;
|
||||
Algorithm::ParamsForTests<decltype(checkLength)> params(
|
||||
graph, 6 /* startVertex */, {} /* finishVertex */, std::move(checkLength));
|
||||
Algorithm::ParamsForTests<decltype(checkLength)> params(graph, 6 /* startVertex */, {} /* finishVertex */,
|
||||
std::move(checkLength));
|
||||
|
||||
RoutingResult<unsigned /* Vertex */, double /* Weight */> result;
|
||||
auto const code = algo.AdjustRoute(params, prevRoute, result);
|
||||
|
||||
Reference in New Issue
Block a user