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:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2015-07-08 16:41:50 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:54:56 +0300
commit68aa0a0811b89f0bfb216d1e8aaf4671d734b777 (patch)
tree777c5ed1c0dc588b987c70e6016166e51b729a9b /integration_tests
parent76d0e2896b4d1f1fd995f70daccf407f50fce570 (diff)
Added tests to verify models switching
Diffstat (limited to 'integration_tests')
-rw-r--r--integration_tests/pedestrian_route_test.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/integration_tests/pedestrian_route_test.cpp b/integration_tests/pedestrian_route_test.cpp
index fff382379b..85ca95ad46 100644
--- a/integration_tests/pedestrian_route_test.cpp
+++ b/integration_tests/pedestrian_route_test.cpp
@@ -83,3 +83,51 @@ UNIT_TEST(MoscowMailRuStarbucksToPetrovskoRazumovskyAlley_BadRoute)
}
*/
+
+UNIT_TEST(AustraliaMelburn_AvoidMotorway)
+{
+ integration::CalculateRouteAndTestRouteLength(
+ integration::GetPedestrianComponents(),
+ MercatorBounds::FromLatLon(-37.7936, 144.985), {0., 0.},
+ MercatorBounds::FromLatLon(-37.7896, 145.025), 5015.);
+}
+
+UNIT_TEST(AustriaWein_AvoidTrunk)
+{
+ integration::CalculateRouteAndTestRouteLength(
+ integration::GetPedestrianComponents(),
+ MercatorBounds::FromLatLon(48.233, 16.3562), {0., 0.},
+ MercatorBounds::FromLatLon(48.2458, 16.3704), 2627.);
+}
+
+UNIT_TEST(FranceParis_AvoidBridleway)
+{
+ integration::CalculateRouteAndTestRouteLength(
+ integration::GetPedestrianComponents(),
+ MercatorBounds::FromLatLon(48.859, 2.25452), {0., 0.},
+ MercatorBounds::FromLatLon(48.8634, 2.24315), 1307.);
+}
+
+UNIT_TEST(GermanyBerlin_AvoidCycleway)
+{
+ integration::CalculateRouteAndTestRouteLength(
+ integration::GetPedestrianComponents(),
+ MercatorBounds::FromLatLon(52.5459, 13.3952), {0., 0.},
+ MercatorBounds::FromLatLon(52.5413, 13.3989), 1008.);
+}
+
+UNIT_TEST(HungaryBudapest_AvoidMotorway)
+{
+ integration::CalculateRouteAndTestRouteLength(
+ integration::GetPedestrianComponents(),
+ MercatorBounds::FromLatLon(47.5535, 19.1321), {0., 0.},
+ MercatorBounds::FromLatLon(47.595, 19.2235), 13265.);
+}
+
+UNIT_TEST(PolandWarshaw_AvoidCycleway)
+{
+ integration::CalculateRouteAndTestRouteLength(
+ integration::GetPedestrianComponents(),
+ MercatorBounds::FromLatLon(52.2487, 21.0173), {0., 0.},
+ MercatorBounds::FromLatLon(52.25, 21.0164), 372.);
+}