mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 21:44:04 +00:00
[point iterator] add tests for const/non-const iterator equality/inequality
This commit is contained in:
parent
2ea67309e7
commit
457d22d0d9
@ -228,6 +228,15 @@ struct test_point_iterator_of_geometry
|
|||||||
const_begin = begin;
|
const_begin = begin;
|
||||||
const_end = end;
|
const_end = end;
|
||||||
|
|
||||||
|
// testing equality/inequality comparison
|
||||||
|
BOOST_CHECK ( begin == const_begin );
|
||||||
|
BOOST_CHECK ( end == const_end );
|
||||||
|
if ( begin != end )
|
||||||
|
{
|
||||||
|
BOOST_CHECK ( begin != const_end );
|
||||||
|
BOOST_CHECK ( const_begin != end );
|
||||||
|
}
|
||||||
|
|
||||||
// testing dereferencing/assignment
|
// testing dereferencing/assignment
|
||||||
if ( begin != end )
|
if ( begin != end )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user