From 5c86c9429c6616a79fab86bb5cd9bc0e2918c2d9 Mon Sep 17 00:00:00 2001 From: Mikhail Gorbushin Date: Mon, 18 Feb 2019 20:04:28 +0300 Subject: [PATCH] [routing] add integration test --- routing/routing_integration_tests/route_test.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/routing/routing_integration_tests/route_test.cpp b/routing/routing_integration_tests/route_test.cpp index 4eb9df6b13..eb113d95d3 100644 --- a/routing/routing_integration_tests/route_test.cpp +++ b/routing/routing_integration_tests/route_test.cpp @@ -415,4 +415,19 @@ namespace Route const & route = *routeResult.first; integration::TestRouteTime(route, 6392.28); } + + UNIT_TEST(TolyattiFeatureThatCrossSeveralMwmsTest) + { + TRouteResult const routeResult = + integration::CalculateRoute(integration::GetVehicleComponents(), + MercatorBounds::FromLatLon(52.67316, 48.22478), {0., 0.}, + MercatorBounds::FromLatLon(53.49143, 49.52386)); + + RouterResultCode const result = routeResult.second; + TEST_EQUAL(result, RouterResultCode::NoError, ()); + + CHECK(routeResult.first, ()); + Route const & route = *routeResult.first; + integration::TestRouteTime(route, 7136.04); + } } // namespace