forked from organicmaps/organicmaps
Adding a integration test after reducing factors: kMaxPointsCount and kMinDistMeters.
This commit is contained in:
parent
36912bcb63
commit
937c3b80e4
1 changed files with 15 additions and 0 deletions
|
@ -348,3 +348,18 @@ UNIT_TEST(RussiaMoscowLeningradskiyPrptToTheCenterUTurnTest)
|
|||
integration::TestTurnCount(route, 2);
|
||||
integration::GetNthTurn(route, 0).TestValid().TestDirection(TurnDirection::TurnLeft);
|
||||
}
|
||||
|
||||
// Test case: checking that no unnecessary turn on a serpentine road.
|
||||
// This test was written after reducing factors kMaxPointsCount and kMinDistMeters.
|
||||
UNIT_TEST(SwitzerlandSamstagernBergstrasseTest)
|
||||
{
|
||||
TRouteResult const routeResult = integration::CalculateRoute(
|
||||
integration::GetOsrmComponents(), MercatorBounds::FromLatLon(47.19300, 8.67568), {0., 0.},
|
||||
MercatorBounds::FromLatLon(47.19162, 8.67590));
|
||||
|
||||
Route const & route = *routeResult.first;
|
||||
IRouter::ResultCode const result = routeResult.second;
|
||||
|
||||
TEST_EQUAL(result, IRouter::NoError, ());
|
||||
integration::TestTurnCount(route, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue