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>2015-06-29 13:09:04 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:53:25 +0300
commit9148053b3aa67aac443ade98e2ed2ae899419095 (patch)
treee24caedef110b579fcedc15d29c62cc43e3f6d9c /integration_tests
parentc3dfbbd717f49d74b0007536fb6330881b58e209 (diff)
An integration test for a turn from Varshavskoe shosse to MKAD was added.
Diffstat (limited to 'integration_tests')
-rw-r--r--integration_tests/osrm_turn_test.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/integration_tests/osrm_turn_test.cpp b/integration_tests/osrm_turn_test.cpp
index a619e876e8..38ff97dcf6 100644
--- a/integration_tests/osrm_turn_test.cpp
+++ b/integration_tests/osrm_turn_test.cpp
@@ -254,3 +254,21 @@ UNIT_TEST(ThailandPhuketNearPrabarameeRoad)
TEST_EQUAL(result, OsrmRouter::NoError, ());
integration::TestTurnCount(route, 0);
}
+
+// Test case: a route goes in Moscow from Varshavskoe shosse (from the city center direction)
+// to MKAD (the outer side). A turn instruction (to leave Varshavskoe shosse)
+// shall be generated.
+UNIT_TEST(RussiaMoscowVorshavskoiShosseMKAD)
+{
+ TRouteResult const routeResult = integration::CalculateRoute(
+ integration::GetAllMaps(), MercatorBounds::FromLatLon(55.58210, 37.59695), {0., 0.},
+ MercatorBounds::FromLatLon(55.57514, 37.61020));
+
+ Route const & route = *routeResult.first;
+ OsrmRouter::ResultCode const result = routeResult.second;
+
+ TEST_EQUAL(result, OsrmRouter::NoError, ());
+ integration::TestTurnCount(route, 1);
+ integration::GetNthTurn(route, 0).TestValid().TestOneOfDirections(
+ {TurnDirection::TurnSlightRight, TurnDirection::TurnRight});
+}