mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-09 23:24:02 +00:00
[test] move as_range to algorithms/detail
This commit is contained in:
parent
b42d70f49e
commit
65f57b1947
@ -10,6 +10,7 @@
|
||||
|
||||
test-suite boost-geometry-algorithms-detail
|
||||
:
|
||||
[ run as_range.cpp ]
|
||||
[ run partition.cpp ]
|
||||
;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user