[test] move as_range to algorithms/detail

This commit is contained in:
Barend Gehrels 2015-03-11 19:07:16 +01:00
parent b42d70f49e
commit 65f57b1947
2 changed files with 4 additions and 3 deletions

View File

@ -10,6 +10,7 @@
test-suite boost-geometry-algorithms-detail
:
[ run as_range.cpp ]
[ run partition.cpp ]
;

View File

@ -17,7 +17,7 @@
#include <boost/geometry/views/detail/range_type.hpp>
#include <boost/geometry/util/as_range.hpp>
#include <boost/geometry/algorithms/detail/as_range.hpp>
#include <boost/geometry/core/cs.hpp>
#include <boost/geometry/geometries/geometries.hpp>
@ -47,10 +47,10 @@ void test_geometry(std::string const& wkt, double expected_x, double expected_y)
bg::read_wkt(wkt, geometry);
double s = sum<0>(bg::as_range<range_type>(geometry));
double s = sum<0>(bg::detail::as_range<range_type>(geometry));
BOOST_CHECK_CLOSE(s, expected_x, 0.001);
s = sum<1>(bg::as_range<range_type>(geometry));
s = sum<1>(bg::detail::as_range<range_type>(geometry));
BOOST_CHECK_CLOSE(s, expected_y, 0.001);
}