From df8af4e9d46dadfa10905cb461e3f9881f3ff6c8 Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Tue, 5 Sep 2023 13:59:43 -0300 Subject: [PATCH] [routing][tests] Updated integration tests. Signed-off-by: Viktor Govako --- routing/routing_integration_tests/bicycle_route_test.cpp | 2 ++ routing/routing_integration_tests/pedestrian_route_test.cpp | 2 +- routing/routing_integration_tests/route_test.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/routing/routing_integration_tests/bicycle_route_test.cpp b/routing/routing_integration_tests/bicycle_route_test.cpp index 94d3a185eb..0709b55cfc 100644 --- a/routing/routing_integration_tests/bicycle_route_test.cpp +++ b/routing/routing_integration_tests/bicycle_route_test.cpp @@ -136,6 +136,8 @@ UNIT_TEST(CrossMwmKaliningradRegionToLiepaja) mercator::FromLatLon(54.63519, 21.80749), {0., 0.}, mercator::FromLatLon(56.51119, 21.01847), 271237); + // Avoid ferry Dreverna-JuodkrantÄ—-KlaipÄ—da. + RoutingOptionSetter optionsGuard(RoutingOptions::Ferry); // Same as GraphHopper makes a detour (via unpaved), OSRM goes straight with highway=primary. // https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=55.340%2C21.459%3B55.715%2C21.135 // User says that GraphHopper is the best option. diff --git a/routing/routing_integration_tests/pedestrian_route_test.cpp b/routing/routing_integration_tests/pedestrian_route_test.cpp index 97a95191b7..d66f178930 100644 --- a/routing/routing_integration_tests/pedestrian_route_test.cpp +++ b/routing/routing_integration_tests/pedestrian_route_test.cpp @@ -80,7 +80,7 @@ UNIT_TEST(Zgrad924aToKrukovo) integration::CalculateRouteAndTestRouteLength( integration::GetVehicleComponents(VehicleType::Pedestrian), mercator::FromLatLon(55.9844, 37.1808), {0., 0.}, - mercator::FromLatLon(55.9802, 37.1736), 1305.48); + mercator::FromLatLon(55.9802, 37.1736), 1030); } UNIT_TEST(MoscowMailRuStarbucksToPetrovskoRazumovskyAlley) diff --git a/routing/routing_integration_tests/route_test.cpp b/routing/routing_integration_tests/route_test.cpp index 1a32a33d8a..fa43f90858 100644 --- a/routing/routing_integration_tests/route_test.cpp +++ b/routing/routing_integration_tests/route_test.cpp @@ -886,7 +886,7 @@ UNIT_TEST(Bulgaria_Rosenovo_Dobrich) UNIT_TEST(Russia_UseGravelPrimary_Not_DefaultTertiary) { - /// @todo Actually, tertiary should be tagged as surface=unaved. + /// @todo Actually, tertiary should be tagged as surface=unpaved. /// There is an idea to detect and update route if we have leave-enter for the same ref (named) >= primary road: /// {80K-004, some tertiary, 80K-004} in a reasonable distance. This is a signal that "some tertiary" /// in a middle is an error.