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-01-24 13:02:36 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2018-01-24 13:12:27 +0300
commita881625de7f93080cb8fd16b352a96ebd28b0a5d (patch)
treeba2a259abc41e56d496d63f112ab179986dfed8e /routing
parente23476b65e372a718f454bfe009c68f79c8bb7fa (diff)
Routing integration test RussiaMoscowLeningradskiyPrptToTheCenterUTurnTest fixing.
Diffstat (limited to 'routing')
-rw-r--r--routing/routing_integration_tests/turn_test.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/routing/routing_integration_tests/turn_test.cpp b/routing/routing_integration_tests/turn_test.cpp
index 35d0cc705f..f5b6f12f98 100644
--- a/routing/routing_integration_tests/turn_test.cpp
+++ b/routing/routing_integration_tests/turn_test.cpp
@@ -460,8 +460,7 @@ UNIT_TEST(RussiaMoscowBolshoyKislovskiyPerBolshayaNikitinskayaUlTest)
integration::GetNthTurn(route, 0).TestValid().TestDirection(CarDirection::TurnRight);
}
-// Test case: a route goes in Moscow along Leningradskiy Prpt (towards city center)
-// and makes u-turn. A only one turn instruction (turn left) shell be generated.
+// Test case: a route goes in Moscow along Leningradskiy Prpt (towards city center).
UNIT_TEST(RussiaMoscowLeningradskiyPrptToTheCenterUTurnTest)
{
TRouteResult const routeResult =
@@ -473,8 +472,11 @@ UNIT_TEST(RussiaMoscowLeningradskiyPrptToTheCenterUTurnTest)
IRouter::ResultCode const result = routeResult.second;
TEST_EQUAL(result, IRouter::NoError, ());
- integration::TestTurnCount(route, 1 /* expectedTurnCount */);
- integration::GetNthTurn(route, 0).TestValid().TestDirection(CarDirection::UTurnLeft);
+ integration::TestTurnCount(route, 2 /* expectedTurnCount */);
+ integration::GetNthTurn(route, 0).TestValid().TestOneOfDirections(
+ {CarDirection::TurnLeft, CarDirection::TurnSlightLeft});
+ integration::GetNthTurn(route, 1).TestValid().TestOneOfDirections(
+ {CarDirection::TurnLeft, CarDirection::TurnSlightLeft});
}
// Fails: generates unnecessary turn.