From 90214f9707f603741b84798c3672b5b13244a817 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 1 May 2023 16:21:30 +0100 Subject: Add missing test over iterator comparison --- test/test-glContainer.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test-glContainer.cpp b/test/test-glContainer.cpp index 09d21d1..33ec992 100644 --- a/test/test-glContainer.cpp +++ b/test/test-glContainer.cpp @@ -264,6 +264,17 @@ BOOST_AUTO_TEST_CASE(stl) } } +BOOST_AUTO_TEST_CASE(iter_compare) +{ + BOOST_CHECK_EQUAL(begin(), end()); + BOOST_CHECK_EQUAL(rbegin(), rend()); + emplace_back(); + BOOST_CHECK_LT(begin(), end()); + BOOST_CHECK_LT(rbegin(), rend()); + BOOST_CHECK_LT(cbegin(), cend()); + BOOST_CHECK_LT(crbegin(), crend()); +} + BOOST_AUTO_TEST_SUITE_END(); struct C { @@ -326,6 +337,7 @@ BOOST_AUTO_TEST_CASE(basic) BOOST_CHECK_EQUAL(size(), 1); BOOST_CHECK_EQUAL(capacity(), 1); } + BOOST_AUTO_TEST_CASE(insert_remove_test) { BOOST_CHECK_NO_THROW(emplace_back(1, 2.f)); -- cgit v1.2.3