Skip to content

Commit

Permalink
Add negative subscript test to iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
igaztanaga committed Apr 15, 2024
1 parent 07ba0e3 commit 09ab48a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/iterator_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ void test_iterator_random_functions(C const &c, I const b, I const e)
BOOST_TEST(i == it - b);
BOOST_TEST(b[i] == *it);
BOOST_TEST(&b[i] == &*it);
BOOST_TEST(&b[0] == &it[-i]);
BOOST_TEST((b + i) == it);
BOOST_TEST((i + b) == it);
BOOST_TEST(b == (it - i));
Expand Down

0 comments on commit 09ab48a

Please sign in to comment.