[routing] add integration test

This commit is contained in:
Mikhail Gorbushin 2019-02-18 20:04:28 +03:00 committed by Vladimir Byko-Ianko
parent e3d59e6af7
commit 5c86c9429c

View file

@ -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<VehicleType::Car>(),
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