mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Exercise subtraction between iterators in the unit tests
Reason: This was missing. And we forgot a friend declaration for the corresponding operator-(), which will be added with the next commit.
This commit is contained in:
@@ -248,6 +248,8 @@ struct bitset_test
|
|||||||
BOOST_TEST( *( 1 + b.begin() ) == b[ 1 ] );
|
BOOST_TEST( *( 1 + b.begin() ) == b[ 1 ] );
|
||||||
BOOST_TEST( *( b.end() - 1 ) == b[ b.size() - 1 ] );
|
BOOST_TEST( *( b.end() - 1 ) == b[ b.size() - 1 ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_TEST( b.end() - b.begin() == static_cast< std::ptrdiff_t >( b.size() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user