[routing] Add test for route=shuttle_train

This commit is contained in:
Mikhail Gorbushin 2019-01-18 17:06:20 +03:00 committed by Vlad Mihaylenko
parent 58182fc7a6
commit a045da31d9

View file

@ -399,4 +399,20 @@ namespace
Route const & route = *routeResult.first;
integration::TestRouteTime(route, 17704.3);
}
// Test on roads with tag route=shuttle_train
UNIT_TEST(GermanyShuttleTrainTest)
{
TRouteResult const routeResult =
integration::CalculateRoute(integration::GetVehicleComponents<VehicleType::Car>(),
MercatorBounds::FromLatLon(54.78370, 8.83528), {0., 0.},
MercatorBounds::FromLatLon(54.91681, 8.31346));
RouterResultCode const result = routeResult.second;
TEST_EQUAL(result, RouterResultCode::NoError, ());
CHECK(routeResult.first, ());
Route const & route = *routeResult.first;
integration::TestRouteTime(route, 6392.28);
}
} // namespace