[routing] Fixing routing integration tests.

This commit is contained in:
Vladimir Byko-Ianko 2019-11-29 17:58:06 +03:00 committed by mesozoic-drones
parent 420d00062f
commit a3031413d1
3 changed files with 3 additions and 4 deletions

View file

@ -63,7 +63,6 @@ public:
m_map[c.GetTypeByPath({"highway", "cycleway"})] = ftypes::HighwayClass::Pedestrian;
m_map[c.GetTypeByPath({"highway", "path"})] = ftypes::HighwayClass::Pedestrian;
m_map[c.GetTypeByPath({"highway", "construction"})] = ftypes::HighwayClass::Pedestrian;
}
ftypes::HighwayClass Get(uint32_t t) const

View file

@ -419,7 +419,7 @@ namespace
CHECK(routeResult.first, ());
Route const & route = *routeResult.first;
integration::TestRouteTime(route, 6470.68);
integration::TestRouteTime(route, 6348.78);
}
// Test on removing speed cameras from the route for maps from Jan 2019,

View file

@ -69,7 +69,7 @@ UNIT_TEST(Transit_Piter_TooLongPedestrian)
TRouteResult routeResult =
integration::CalculateRoute(integration::GetVehicleComponents(VehicleType::Transit),
mercator::FromLatLon(59.90511, 30.31425), {0.0, 0.0},
mercator::FromLatLon(59.80677, 30.44749));
mercator::FromLatLon(59.78014, 30.50036));
TEST_EQUAL(routeResult.second, RouterResultCode::TransitRouteNotFoundTooLongPedestrian, ());
}
@ -124,7 +124,7 @@ UNIT_TEST(Transit_London_DeptfordBridgeToCyprus)
TEST_EQUAL(routeResult.second, RouterResultCode::NoError, ());
integration::TestRouteLength(*routeResult.first, 12293.4);
integration::TestRouteLength(*routeResult.first, 12758.9);
CHECK(routeResult.first, ());
integration::CheckSubwayExistence(*routeResult.first);