mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
Add test cases for std::reverse_iterator
This commit is contained in:
parent
6cf9c22cf1
commit
592382dc61
@ -86,6 +86,13 @@ int test_main(int, char*[])
|
||||
BOOST_REQUIRE(minus_n_unsigned_test(x.begin(), x.end(), x.size()));
|
||||
BOOST_REQUIRE(minus_n_unsigned_test(y.begin(), y.end(), y.size()));
|
||||
|
||||
BOOST_REQUIRE(plus_one_test(x.rbegin(), x.rend(), y.begin()));
|
||||
BOOST_REQUIRE(plus_n_test(x.rbegin(), x.rend(), y.begin()));
|
||||
BOOST_REQUIRE(minus_one_test(x.rbegin(), x.rend(), y.end()));
|
||||
BOOST_REQUIRE(minus_n_test(x.rbegin(), x.rend(), y.end()));
|
||||
BOOST_REQUIRE(minus_n_unsigned_test(x.rbegin(), x.rend(), x.size()));
|
||||
BOOST_REQUIRE(minus_n_unsigned_test(x.rbegin(), x.rend(), y.size()));
|
||||
|
||||
// Tests with integers
|
||||
BOOST_REQUIRE(boost::next(5) == 6);
|
||||
BOOST_REQUIRE(boost::next(5, 7) == 12);
|
||||
|
Loading…
x
Reference in New Issue
Block a user