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:
@@ -23,23 +23,21 @@ UNIT_TEST(CrossCountry_EAEU_Borders_Russia_to_Russia_through_Belarus)
|
||||
{
|
||||
/// @todo Uses tertiary instead of longer (7km) primary. Can't say fo sure is it ok or not, but looks good.
|
||||
integration::CalculateRouteAndTestRouteLength(
|
||||
integration::GetVehicleComponents(VehicleType::Car),
|
||||
mercator::FromLatLon(53.83281, 32.47602) /* startPoint */, {0.0, 0.0} /* startDirection */,
|
||||
mercator::FromLatLon(52.79681, 32.98167) /* finalPoint */, 188'085 /* expectedRouteMeters */);
|
||||
integration::GetVehicleComponents(VehicleType::Car), mercator::FromLatLon(53.83281, 32.47602) /* startPoint */,
|
||||
{0.0, 0.0} /* startDirection */, mercator::FromLatLon(52.79681, 32.98167) /* finalPoint */,
|
||||
188'085 /* expectedRouteMeters */);
|
||||
}
|
||||
|
||||
UNIT_TEST(Russia_UsePrimaryDetour_NotSecondaryTown)
|
||||
{
|
||||
integration::CalculateRouteAndTestRouteLength(
|
||||
integration::GetVehicleComponents(VehicleType::Car),
|
||||
mercator::FromLatLon(50.215143, 39.4498585), {0.0, 0.0},
|
||||
mercator::FromLatLon(49.9025281, 40.5213712), 123949);
|
||||
integration::CalculateRouteAndTestRouteLength(integration::GetVehicleComponents(VehicleType::Car),
|
||||
mercator::FromLatLon(50.215143, 39.4498585), {0.0, 0.0},
|
||||
mercator::FromLatLon(49.9025281, 40.5213712), 123949);
|
||||
|
||||
/// @todo Should prefer trunk detour with maxspeed=90 than secondary with maxspeed=60.
|
||||
integration::CalculateRouteAndTestRouteLength(
|
||||
integration::GetVehicleComponents(VehicleType::Car),
|
||||
mercator::FromLatLon(45.2849983, 38.2432247), {0.0, 0.0},
|
||||
mercator::FromLatLon(45.237346, 38.0046459), 28534.8);
|
||||
integration::CalculateRouteAndTestRouteLength(integration::GetVehicleComponents(VehicleType::Car),
|
||||
mercator::FromLatLon(45.2849983, 38.2432247), {0.0, 0.0},
|
||||
mercator::FromLatLon(45.237346, 38.0046459), 28534.8);
|
||||
}
|
||||
|
||||
// In this case the shortest way from Belgorod oblast to Crimea is through Ukraine. But we add
|
||||
@@ -51,14 +49,12 @@ UNIT_TEST(CrossCountry_Russia_Belgorod_Oblast_to_Crimea)
|
||||
// This routes go via Russia only.
|
||||
// Some subroutes are checked in Russia_UsePrimaryDetour_NotSecondaryTown.
|
||||
integration::CalculateRouteAndTestRouteLength(
|
||||
integration::GetVehicleComponents(VehicleType::Car),
|
||||
mercator::FromLatLon(50.39589, 38.83377) /* startPoint */, {0.0, 0.0} /* startDirection */,
|
||||
mercator::FromLatLon(45.06336, 34.48566) /* finalPoint */, 1'144'970);
|
||||
integration::GetVehicleComponents(VehicleType::Car), mercator::FromLatLon(50.39589, 38.83377) /* startPoint */,
|
||||
{0.0, 0.0} /* startDirection */, mercator::FromLatLon(45.06336, 34.48566) /* finalPoint */, 1'144'970);
|
||||
|
||||
integration::CalculateRouteAndTestRouteLength(
|
||||
integration::GetVehicleComponents(VehicleType::Car),
|
||||
mercator::FromLatLon(50.39589, 38.83377) /* startPoint */, {0.0, 0.0} /* startDirection */,
|
||||
mercator::FromLatLon(45.1048391, 35.1297058) /* finalPoint */, 1'096'360);
|
||||
integration::GetVehicleComponents(VehicleType::Car), mercator::FromLatLon(50.39589, 38.83377) /* startPoint */,
|
||||
{0.0, 0.0} /* startDirection */, mercator::FromLatLon(45.1048391, 35.1297058) /* finalPoint */, 1'096'360);
|
||||
}
|
||||
|
||||
// In this case the shortest way from Lithuania to Poland is through Russia, Kaliningrad Oblast. But
|
||||
@@ -67,9 +63,9 @@ UNIT_TEST(CrossCountry_Russia_Belgorod_Oblast_to_Crimea)
|
||||
UNIT_TEST(CrossCountry_Lithuania_to_Poland)
|
||||
{
|
||||
integration::CalculateRouteAndTestRouteLength(
|
||||
integration::GetVehicleComponents(VehicleType::Car),
|
||||
mercator::FromLatLon(55.10055, 22.30228) /* startPoint */, {0.0, 0.0} /* startDirection */,
|
||||
mercator::FromLatLon(54.27745, 22.33767) /* finalPoint */, 191'963 /* expectedRouteMeters */);
|
||||
integration::GetVehicleComponents(VehicleType::Car), mercator::FromLatLon(55.10055, 22.30228) /* startPoint */,
|
||||
{0.0, 0.0} /* startDirection */, mercator::FromLatLon(54.27745, 22.33767) /* finalPoint */,
|
||||
191'963 /* expectedRouteMeters */);
|
||||
}
|
||||
|
||||
// In this case the shortest way from Hungary to Slovakia is through Ukraine. But we add penalty for
|
||||
@@ -78,7 +74,7 @@ UNIT_TEST(CrossCountry_Lithuania_to_Poland)
|
||||
UNIT_TEST(CrossCountry_Hungary_to_Slovakia)
|
||||
{
|
||||
integration::CalculateRouteAndTestRouteLength(
|
||||
integration::GetVehicleComponents(VehicleType::Car),
|
||||
mercator::FromLatLon(48.39107, 22.18352) /* startPoint */, {0.0, 0.0} /* startDirection */,
|
||||
mercator::FromLatLon(48.69826, 22.23454) /* finalPoint */, 100'015 /* expectedRouteMeters */);
|
||||
integration::GetVehicleComponents(VehicleType::Car), mercator::FromLatLon(48.39107, 22.18352) /* startPoint */,
|
||||
{0.0, 0.0} /* startDirection */, mercator::FromLatLon(48.69826, 22.23454) /* finalPoint */,
|
||||
100'015 /* expectedRouteMeters */);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user