mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 13:53:37 +00:00
[routing][tests] Updated integration tests.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
76d7ef146c
commit
001246fd10
@@ -87,11 +87,10 @@ UNIT_TEST(Zgrad924aToKrukovo)
|
||||
|
||||
UNIT_TEST(MoscowMailRuStarbucksToPetrovskoRazumovskyAlley)
|
||||
{
|
||||
// Avoids footway gravel (-> path) and uses footway compacted.
|
||||
integration::CalculateRouteAndTestRouteLength(
|
||||
integration::GetVehicleComponents(VehicleType::Pedestrian),
|
||||
mercator::FromLatLon(55.7971, 37.5376), {0., 0.},
|
||||
mercator::FromLatLon(55.7953, 37.5597), 1849.6);
|
||||
mercator::FromLatLon(55.7953, 37.5597), 1802.31);
|
||||
}
|
||||
|
||||
UNIT_TEST(AustraliaMelburn_AvoidMotorway)
|
||||
@@ -373,10 +372,12 @@ UNIT_TEST(ItalyRome_WalkOverStreetWithSidewalkBoth)
|
||||
|
||||
UNIT_TEST(USARedlandsEsriHQToRedlandsCommunity)
|
||||
{
|
||||
// OM makes like OSRM with footway.
|
||||
// Valhalla uses shorter South San Mateo + West Olive.
|
||||
integration::CalculateRouteAndTestRouteLength(
|
||||
integration::GetVehicleComponents(VehicleType::Pedestrian),
|
||||
mercator::FromLatLon(34.0556, -117.19567), {0., 0.},
|
||||
mercator::FromLatLon(34.03682, -117.20649), 3142.15);
|
||||
mercator::FromLatLon(34.03682, -117.20649), 3212.65);
|
||||
}
|
||||
|
||||
UNIT_TEST(USANewYorkEmpireStateBuildingToUnitedNations)
|
||||
@@ -629,7 +630,7 @@ UNIT_TEST(France_Uphill_Downlhill)
|
||||
TEST(routeResult.first, ());
|
||||
Route const & route = *routeResult.first;
|
||||
|
||||
TestRouteLength(route, 20388.7);
|
||||
TestRouteLength(route, 19771);
|
||||
timeDownhill = route.GetTotalTimeSec();
|
||||
TEST_GREATER(timeDownhill, 4 * 3600, ());
|
||||
}
|
||||
@@ -643,7 +644,7 @@ UNIT_TEST(France_Uphill_Downlhill)
|
||||
TEST(routeResult.first, ());
|
||||
Route const & route = *routeResult.first;
|
||||
|
||||
TestRouteLength(route, 20388.7);
|
||||
TestRouteLength(route, 19771);
|
||||
timeUphill = route.GetTotalTimeSec();
|
||||
TEST_GREATER(timeUphill, 4 * 3600, ());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user