From 68ab2079641b7ca16015082f977628a0cd5bc2f3 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Mon, 24 Sep 2018 14:39:28 +0300 Subject: [PATCH] In city feature speed test fix. --- routing/routing_integration_tests/bicycle_route_test.cpp | 4 ++-- routing/routing_integration_tests/route_test.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/routing/routing_integration_tests/bicycle_route_test.cpp b/routing/routing_integration_tests/bicycle_route_test.cpp index 5c52579479..b2022274e5 100644 --- a/routing/routing_integration_tests/bicycle_route_test.cpp +++ b/routing/routing_integration_tests/bicycle_route_test.cpp @@ -64,7 +64,7 @@ UNIT_TEST(NetherlandsAmsterdamBicycleYes) Route const & route = *routeResult.first; RouterResultCode const result = routeResult.second; TEST_EQUAL(result, RouterResultCode::NoError, ()); - TEST(base::AlmostEqualAbs(route.GetTotalTimeSec(), 357.0, 1.0), (route.GetTotalTimeSec())); + TEST(base::AlmostEqualAbs(route.GetTotalTimeSec(), 268.3, 1.0), (route.GetTotalTimeSec())); } // This test on tag cycleway=opposite for a streets which have oneway=yes. @@ -82,7 +82,7 @@ UNIT_TEST(RussiaMoscowKashirskoe16ToCapLongRoute) CalculateRouteAndTestRouteLength( GetVehicleComponents(), MercatorBounds::FromLatLon(55.66230, 37.63214), {0., 0.}, - MercatorBounds::FromLatLon(55.68927, 37.70356), 7726.0); + MercatorBounds::FromLatLon(55.68927, 37.70356), 7075.0); } // No pass through service road in Russia diff --git a/routing/routing_integration_tests/route_test.cpp b/routing/routing_integration_tests/route_test.cpp index 2b3dd500fe..94b9c8f7f9 100644 --- a/routing/routing_integration_tests/route_test.cpp +++ b/routing/routing_integration_tests/route_test.cpp @@ -320,7 +320,7 @@ namespace CHECK(routeResult.first, ()); Route const & route = *routeResult.first; - integration::TestRouteTime(route, 15144.6); + integration::TestRouteTime(route, 16203.6); } UNIT_TEST(RussiaMoscowLenigradskiy39GeroevPanfilovtsev22TimeTest) @@ -334,7 +334,7 @@ namespace CHECK(routeResult.first, ()); Route const & route = *routeResult.first; - integration::TestRouteTime(route, 730.); + integration::TestRouteTime(route, 1000.0); } UNIT_TEST(RussiaMoscowLenigradskiy39GeroevPanfilovtsev22SubrouteTest) @@ -409,7 +409,7 @@ namespace integration::CalculateRouteAndTestRouteLength( integration::GetVehicleComponents(), MercatorBounds::FromLatLon(60.23884, 29.71603), {0.0, 0.0}, - MercatorBounds::FromLatLon(60.28975, 29.79399), 11618.1); + MercatorBounds::FromLatLon(60.29083, 29.80333), 16679.2); } // Test of decreasing speed factor on roads with bad cover.