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:
Diffstat (limited to 'routing')
-rw-r--r--routing/routing_integration_tests/osrm_route_test.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/routing/routing_integration_tests/osrm_route_test.cpp b/routing/routing_integration_tests/osrm_route_test.cpp
index 1423da1234..c13c2d9e65 100644
--- a/routing/routing_integration_tests/osrm_route_test.cpp
+++ b/routing/routing_integration_tests/osrm_route_test.cpp
@@ -4,6 +4,8 @@
#include "geometry/mercator.hpp"
+#include "std/limits.hpp"
+
using namespace routing;
namespace
@@ -268,4 +270,15 @@ namespace
integration::TestRouteTime(route, 900.);
}
+
+ UNIT_TEST(USALosAnglesAriaTwentyninePalmsHighwayTimeTest)
+ {
+ TRouteResult const routeResult = integration::CalculateRoute(
+ integration::GetOsrmComponents(), MercatorBounds::FromLatLon(34.0739, -115.3212), {0.0, 0.0},
+ MercatorBounds::FromLatLon(34.0928, -115.5930));
+ Route const & route = *routeResult.first;
+ IRouter::ResultCode const result = routeResult.second;
+ TEST_EQUAL(result, IRouter::NoError, ());
+ TEST_LESS(route.GetTotalTimeSec(), numeric_limits<uint32_t>::max() / 2, ());
+ }
} // namespace