some tests and optimizations.

[SVN r79107]
This commit is contained in:
Adam Wulkiewicz
2012-06-26 11:49:56 +00:00
parent 31c5e016e7
commit c00ddbd2a8
10 changed files with 393 additions and 12 deletions

View File

@@ -27,7 +27,20 @@
template <typename Geometry>
void test(Geometry const& geometry, bool expected_value)
{
BOOST_CHECK(bgi::is_valid(geometry) == expected_value);
bool value = bgi::is_valid(geometry);
#ifdef GEOMETRY_TEST_DEBUG
std::ostringstream out;
out << typeid(typename bg::coordinate_type<Geometry>::type).name()
<< " "
<< typeid(bool).name()
<< " "
<< "is_valid : " << value
<< std::endl;
std::cout << out.str();
#endif
BOOST_CHECK(value == expected_value);
}
template <typename Box>