Major update:

Adaptions to test with respect to new namespace model
Removed GMP/CLN and, where it was present, replaced by TTMATH
Small fix in comparable_distance test
All testfiles use bg as alias now

[SVN r66811]
This commit is contained in:
Barend Gehrels
2010-11-28 13:28:09 +00:00
parent 773131faa5
commit e4f47a7a25
180 changed files with 2391 additions and 2464 deletions

View File

@@ -22,7 +22,6 @@
template <typename Segment>
void test_geometry(std::string const& wkt, std::string const& expected)
{
namespace bg = boost::geometry;
Segment segment;
bg::read_wkt(wkt, segment);
@@ -32,10 +31,10 @@ void test_geometry(std::string const& wkt, std::string const& expected)
{
std::ostringstream out;
for (typename boost::range_iterator<range_type>::type it = boost::begin(range);
for (typename boost::range_iterator<range_type>::type it = boost::begin(range);
it != boost::end(range); ++it)
{
out << " " << boost::geometry::get<0>(*it) << boost::geometry::get<1>(*it);
out << " " << bg::get<0>(*it) << bg::get<1>(*it);
}
BOOST_CHECK_EQUAL(out.str(), expected);
}
@@ -43,13 +42,13 @@ void test_geometry(std::string const& wkt, std::string const& expected)
{
// Check forward/backward behaviour
std::ostringstream out;
typename boost::range_iterator<range_type>::type it = boost::begin(range);
typename boost::range_iterator<range_type>::type it = boost::begin(range);
it++;
it--;
out << " " << boost::geometry::get<0>(*it) << boost::geometry::get<1>(*it);
out << " " << bg::get<0>(*it) << bg::get<1>(*it);
typename boost::range_iterator<range_type>::type it2 = boost::end(range);
it2--;
out << " " << boost::geometry::get<0>(*it2) << boost::geometry::get<1>(*it2);
out << " " << bg::get<0>(*it2) << bg::get<1>(*it2);
BOOST_CHECK_EQUAL(out.str(), expected);
}
@@ -71,6 +70,6 @@ void test_all()
int test_main(int, char* [])
{
test_all<boost::geometry::point_2d>();
test_all<bg::model::point_2d>();
return 0;
}