mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-12 00:02:09 +00:00
some tests and optimizations.
[SVN r79107]
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user