From 3385a54840c7985dde6a5b47d263920db4d6ed06 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 1 Oct 2026 21:52:14 +0200 Subject: kstd: ring_buffer: add missing [c]rend() tests --- libs/kstd/kstd/ring_buffer.tests.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libs/kstd/kstd/ring_buffer.tests.cpp b/libs/kstd/kstd/ring_buffer.tests.cpp index 84adba91..f6613f33 100644 --- a/libs/kstd/kstd/ring_buffer.tests.cpp +++ b/libs/kstd/kstd/ring_buffer.tests.cpp @@ -151,6 +151,21 @@ SCENARIO("Ring Buffer interface types", "[kstd][ring_buffer]") { STATIC_REQUIRE(std::is_same_v().crbegin())>); } + + THEN("the return type of rend() is `reverse_iterator`") + { + STATIC_REQUIRE(std::is_same_v().rend())>); + } + + THEN("the return type of rend() is `const_reverse_iterator` on a const buffer") + { + STATIC_REQUIRE(std::is_same_v().rend())>); + } + + THEN("the return type of crend() is `const_reverse_iterator`") + { + STATIC_REQUIRE(std::is_same_v().crend())>); + } } } -- cgit v1.2.3