From 0bf054e207538aa2d7b7aae1c592ae774e0a2887 Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Sun, 18 Feb 2024 13:28:23 -0300 Subject: [PATCH] [routing][tests] Added highway-construction test. Signed-off-by: Viktor Govako --- routing/routing_integration_tests/bicycle_route_test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/routing/routing_integration_tests/bicycle_route_test.cpp b/routing/routing_integration_tests/bicycle_route_test.cpp index 7df04d7354..703e4c02ac 100644 --- a/routing/routing_integration_tests/bicycle_route_test.cpp +++ b/routing/routing_integration_tests/bicycle_route_test.cpp @@ -300,4 +300,13 @@ UNIT_TEST(IgnoreCycleBarrier_WithoutAccess) mercator::FromLatLon(51.3576973, -2.31416085), 11131.6); } +// https://github.com/organicmaps/organicmaps/issues/7257 +UNIT_TEST(AvoidConstruction) +{ + // Will not work when the bridge will be finished. + CalculateRouteAndTestRouteLength(GetVehicleComponents(VehicleType::Bicycle), + mercator::FromLatLon(-27.4724942, 153.030171), {0.0, 0.0}, + mercator::FromLatLon(-27.4706626, 153.035428), 2989.28); +} + } // namespace bicycle_route_test