From 574d767d54edbca6d4a01e6ab876a26f7478ff5f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 14 Jan 2022 01:46:50 +0000 Subject: Process UI layers in reverse, so it's stack like --- test/test-collection.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/test-collection.cpp') 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; BOOST_TEST_DONT_PRINT_LOG_VALUE(Collection::Objects::const_iterator) +BOOST_TEST_DONT_PRINT_LOG_VALUE(Collection::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(); + 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(); -- cgit v1.2.3