Adding one more integration test on geting rid of name filter.

This commit is contained in:
Vladimir Byko-Ianko 2018-03-01 17:55:03 +03:00 committed by Tatiana Yan
parent 14d670a0c9
commit 29bea6a2f2

View file

@ -912,3 +912,19 @@ UNIT_TEST(RussiaMoscowComplicatedTurnTest)
{CarDirection::GoStraight, CarDirection::TurnSlightLeft});
integration::GetNthTurn(route, 1).TestValid().TestDirection(CarDirection::TurnRight);
}
UNIT_TEST(USATampaTest)
{
TRouteResult const routeResult =
integration::CalculateRoute(integration::GetVehicleComponents<VehicleType::Car>(),
MercatorBounds::FromLatLon(28.04875, -82.58292), {0., 0.},
MercatorBounds::FromLatLon(28.04459, -82.58448));
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});
}