[release=86][routing] Test on roads with tag maxspeed=none.

This commit is contained in:
Vladimir Byko-Ianko 2018-12-26 14:55:27 +03:00 committed by Vlad Mihaylenko
parent 142541a1e1
commit b8a4407d20

View file

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