From 457d22d0d90a1e26b83bc3e9e70407a39d00277c Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Mon, 7 Apr 2014 11:26:14 +0300 Subject: [PATCH] [point iterator] add tests for const/non-const iterator equality/inequality --- test/iterators/point_iterator.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/iterators/point_iterator.cpp b/test/iterators/point_iterator.cpp index 13d77fdf8..ec0f6bcf8 100644 --- a/test/iterators/point_iterator.cpp +++ b/test/iterators/point_iterator.cpp @@ -228,6 +228,15 @@ struct test_point_iterator_of_geometry const_begin = begin; 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 if ( begin != end ) {