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>2016-09-15 17:06:50 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-09-15 17:06:50 +0300
commit85822e96f24388aebbf63246211cd45b4958658d (patch)
tree674c79ca49900580cac851a2ed4cd76d6a6b9989 /routing
parent46193618b6d2b93c533149c40b775f0db96e2e08 (diff)
Test on negative route time.
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