Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2018-02-14 16:10:51 +0300
committermpimenov <mpimenov@users.noreply.github.com>2018-02-26 15:39:04 +0300
commit2147d48dea35ee8ee96872dd0c2561b734ff7e25 (patch)
tree75ea756de2bf5d196e2457802b72ba328616df18 /routing
parent0e8adaff9dfda32b2806acbbc1a865038b7cb7b8 (diff)
Adding some new integration tests in Moscow.
Diffstat (limited to 'routing')
-rw-r--r--routing/routing_integration_tests/turn_test.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/routing/routing_integration_tests/turn_test.cpp b/routing/routing_integration_tests/turn_test.cpp
index e3169b9755..dd1ce54537 100644
--- a/routing/routing_integration_tests/turn_test.cpp
+++ b/routing/routing_integration_tests/turn_test.cpp
@@ -699,3 +699,35 @@ UNIT_TEST(AustriaBrixentalStrasseTest)
TEST_EQUAL(result, IRouter::NoError, ());
integration::TestTurnCount(route, 0 /* expectedTurnCount */);
}
+
+UNIT_TEST(RussiaMoscowLeningradkaToMKADTest)
+{
+ TRouteResult const routeResult =
+ integration::CalculateRoute(integration::GetVehicleComponents<VehicleType::Car>(),
+ MercatorBounds::FromLatLon(55.87192, 37.45772), {0., 0.},
+ MercatorBounds::FromLatLon(55.87594, 37.45266));
+
+ Route const & route = *routeResult.first;
+ IRouter::ResultCode const result = routeResult.second;
+
+ TEST_EQUAL(result, IRouter::NoError, ());
+ integration::TestTurnCount(route, 1 /* expectedTurnCount */);
+ integration::GetNthTurn(route, 0).TestValid().TestOneOfDirections(
+ {CarDirection::TurnSlightRight, CarDirection::TurnRight});
+}
+
+UNIT_TEST(RussiaMoscowMKADToSvobodaTest)
+{
+ TRouteResult const routeResult =
+ integration::CalculateRoute(integration::GetVehicleComponents<VehicleType::Car>(),
+ MercatorBounds::FromLatLon(55.8801, 37.43862), {0., 0.},
+ MercatorBounds::FromLatLon(55.87583, 37.43046));
+
+ Route const & route = *routeResult.first;
+ IRouter::ResultCode const result = routeResult.second;
+
+ TEST_EQUAL(result, IRouter::NoError, ());
+ integration::TestTurnCount(route, 1 /* expectedTurnCount */);
+ integration::GetNthTurn(route, 0).TestValid().TestOneOfDirections(
+ {CarDirection::TurnSlightRight, CarDirection::TurnRight});
+}