diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2019-05-08 13:05:57 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-05-24 17:29:38 +0300 |
commit | 811ea178b0e3d95b5ffd67730e3ce30cc9d3df14 (patch) | |
tree | 1b2338f3065f2ed42a7bcb13a91fef7920bf9c21 /routing | |
parent | dcefe71c9545e2247c8977c927411126a6bdfbd1 (diff) |
[routing] Add routing_quality test
Diffstat (limited to 'routing')
-rw-r--r-- | routing/routing_quality/routing_quality_tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | routing/routing_quality/routing_quality_tests/leaps_postprocessing_tests.cpp | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/routing/routing_quality/routing_quality_tests/CMakeLists.txt b/routing/routing_quality/routing_quality_tests/CMakeLists.txt index 5f20a69a74..a2f923d300 100644 --- a/routing/routing_quality/routing_quality_tests/CMakeLists.txt +++ b/routing/routing_quality/routing_quality_tests/CMakeLists.txt @@ -4,6 +4,7 @@ set( SRC bigger_roads_tests.cpp ferry_tests.cpp + leaps_postprocessing_tests.cpp passby_roads_tests.cpp waypoints_tests.cpp ) diff --git a/routing/routing_quality/routing_quality_tests/leaps_postprocessing_tests.cpp b/routing/routing_quality/routing_quality_tests/leaps_postprocessing_tests.cpp new file mode 100644 index 0000000000..02f105051a --- /dev/null +++ b/routing/routing_quality/routing_quality_tests/leaps_postprocessing_tests.cpp @@ -0,0 +1,37 @@ +#include "testing/testing.hpp" + +#include "routing/vehicle_mask.hpp" + +#include "routing/routing_quality/utils.hpp" +#include "routing/routing_quality/waypoints.hpp" + +#include <utility> +#include <vector> + +using namespace routing; +using namespace routing_quality; +using namespace std; + +namespace +{ +UNIT_TEST(RoutingQuality_NoLoop_MoscowToKazan) +{ + TEST(!CheckCarRoute({55.63113, 37.63054} /* start */, {55.68213, 52.37379} /* finish */, + {{{55.80643, 37.83981}}} /* reference point */), + ()); +} + +UNIT_TEST(RoutingQuality_NoLoop_Canada) +{ + TEST(!CheckCarRoute({53.53540, -113.50798} /* start */, {69.44402, -133.03189} /* finish */, + {{{61.74073, -121.21379}}} /* reference point */), + ()); +} + +UNIT_TEST(RoutingQuality_NoLoop_ZhitomirTver) +{ + TEST(!CheckCarRoute({50.94928, 28.64163} /* start */, {54.50750, 30.47854} /* finish */, + {{{51.62925, 29.08458}}} /* reference point */), + ()); +} +} // namespace |