Made box/segment iterators random access

[SVN r64590]
This commit is contained in:
Barend Gehrels
2010-08-04 09:17:31 +00:00
parent 694c501f2e
commit e3406eada4
5 changed files with 26 additions and 4 deletions

View File

@@ -46,6 +46,12 @@ void test_geometry(std::string const& wkt, std::string const& expected)
it--;
// Not verified further, same as segment
}
{
// Check random access behaviour
int const n = boost::size(range);
BOOST_CHECK_EQUAL(n, 5);
}
}