summaryrefslogtreecommitdiff
path: root/test/test-collection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-collection.cpp')
-rw-r--r--test/test-collection.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test-collection.cpp b/test/test-collection.cpp
index 6e54da3..f31b3a6 100644
--- a/test/test-collection.cpp
+++ b/test/test-collection.cpp
@@ -35,6 +35,7 @@ public:
using TestCollection = Collection<Base>;
BOOST_TEST_DONT_PRINT_LOG_VALUE(Collection<Base>::Objects::const_iterator)
+BOOST_TEST_DONT_PRINT_LOG_VALUE(Collection<Base>::Objects::const_reverse_iterator)
BOOST_FIXTURE_TEST_SUITE(tc, TestCollection)
@@ -54,6 +55,15 @@ BOOST_AUTO_TEST_CASE(a_base)
BOOST_CHECK_EQUAL(i, end());
}
+BOOST_AUTO_TEST_CASE(a_rbase)
+{
+ auto b = create<Base>();
+ BOOST_REQUIRE(rapply(&Base::add));
+ BOOST_CHECK_EQUAL(b->total, 1);
+ const auto i = rapplyOne(&Base::add);
+ BOOST_CHECK_EQUAL(i, rend());
+}
+
BOOST_AUTO_TEST_CASE(a_sub)
{
auto s = create<Sub>();