From 36adeec2208754306db00dcfddcc3e418c456c50 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Sat, 20 Feb 2016 01:08:30 -0800 Subject: [PATCH] Remove unused tests. --- unit_tests/util/tile_to_bbox.cpp | 33 -------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 unit_tests/util/tile_to_bbox.cpp diff --git a/unit_tests/util/tile_to_bbox.cpp b/unit_tests/util/tile_to_bbox.cpp deleted file mode 100644 index a71f1676e..000000000 --- a/unit_tests/util/tile_to_bbox.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include "util/tile_bbox.hpp" -#include "util/rectangle.hpp" - -#include -#include -#include -#include - -BOOST_AUTO_TEST_SUITE(tile_to_bbox_test) - -using namespace osrm; -using namespace osrm::util; - -// Check that this osm tile to coordinate bbox converter works -struct R -{ -bool operator()(const RectangleInt2D lhs, const RectangleInt2D rhs) -{ - return std::tie(lhs.min_lon, lhs.max_lon, lhs.min_lat, lhs.max_lat) == std::tie(rhs.min_lon, rhs.max_lon, rhs.min_lat, rhs.max_lat); -} -}; - -BOOST_AUTO_TEST_CASE(tile_to_bbox_test) -{ - R equal; - RectangleInt2D expected(-180000000,0,85051128,0); - BOOST_CHECK_EQUAL(true, equal(expected, TileToBBOX(1,0,0))); - - expected = RectangleInt2D(13051757,13095703,52402418,52375599); - BOOST_CHECK_EQUAL(true, equal(expected, TileToBBOX(13,4393,2691))); -} - -BOOST_AUTO_TEST_SUITE_END()