From 6ae105b37fed2fe1cd7db9ff169d92eddf4d4035 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Mon, 15 Jun 2015 13:53:27 +0300 Subject: [PATCH] [tests] Add some restrictions tests. --- integration_tests/osrm_route_test.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/integration_tests/osrm_route_test.cpp b/integration_tests/osrm_route_test.cpp index 159ed0ea86..a98cd2cf1b 100644 --- a/integration_tests/osrm_route_test.cpp +++ b/integration_tests/osrm_route_test.cpp @@ -8,6 +8,25 @@ using namespace routing; namespace { + // Restrictions tests. Check restrictions generation, if there are any errors. + UNIT_TEST(RestrictionTestNeatBaumanAndTTK) + { + integration::CalculateRouteAndTestRouteLength( + integration::GetAllMaps(), + MercatorBounds::FromLatLon(55.77399, 37.68468), {0., 0.}, + MercatorBounds::FromLatLon(55.77198, 37.68782), 900.); + } + + UNIT_TEST(RestrictionTestNearMetroShodnenskaya) + { + integration::CalculateRouteAndTestRouteLength( + integration::GetAllMaps(), + MercatorBounds::FromLatLon(55.85043, 37.43824), {0., 0.}, + MercatorBounds::FromLatLon(55.85191, 37.43910), 510. + ); + } + + // Cross mwm tests. UNIT_TEST(RussiaMoscowLenigradskiy39GerPanfilovtsev22RouteTest) { integration::CalculateRouteAndTestRouteLength(integration::GetAllMaps(),