From b8a4407d2057f4e1fd92e47d39c0abdecf81ec52 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Wed, 26 Dec 2018 14:55:27 +0300 Subject: [PATCH] [release=86][routing] Test on roads with tag maxspeed=none. --- routing/routing_integration_tests/route_test.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/routing/routing_integration_tests/route_test.cpp b/routing/routing_integration_tests/route_test.cpp index 386d7bd4d0..dacd985458 100644 --- a/routing/routing_integration_tests/route_test.cpp +++ b/routing/routing_integration_tests/route_test.cpp @@ -383,4 +383,20 @@ namespace RouterResultCode const result = routeResult.second; TEST_EQUAL(result, RouterResultCode::NoError, ()); } + + // Test on roads with tag maxspeed=none. + UNIT_TEST(GermanyBerlinMunichTimeTest) + { + TRouteResult const routeResult = + integration::CalculateRoute(integration::GetVehicleComponents(), + MercatorBounds::FromLatLon(52.51172, 13.39468), {0., 0.}, + MercatorBounds::FromLatLon(48.13294, 11.60352)); + + RouterResultCode const result = routeResult.second; + TEST_EQUAL(result, RouterResultCode::NoError, ()); + + CHECK(routeResult.first, ()); + Route const & route = *routeResult.first; + integration::TestRouteTime(route, 17704.3); + } } // namespace