Merge branch 'main' into 2027

This commit is contained in:
Peter Johnson
2025-10-06 19:43:02 -07:00
47 changed files with 1439 additions and 195 deletions

View File

@@ -251,4 +251,18 @@ TEST(CircularBufferTest, Iterator) {
EXPECT_EQ(values[i], elem);
++i;
}
// reverse_iterator
i = 2;
for (auto it = queue.rbegin(); it != queue.rend(); ++it) {
EXPECT_EQ(values[i], *it);
--i;
}
// const_reverse_iterator
i = 2;
for (auto it = queue.crbegin(); it != queue.crend(); ++it) {
EXPECT_EQ(values[i], *it);
--i;
}
}

View File

@@ -145,4 +145,18 @@ TEST(StaticCircularBufferTest, Iterator) {
EXPECT_EQ(values[i], elem);
++i;
}
// reverse_iterator
i = 2;
for (auto it = queue.rbegin(); it != queue.rend(); ++it) {
EXPECT_EQ(values[i], *it);
--i;
}
// const_reverse_iterator
i = 2;
for (auto it = queue.crbegin(); it != queue.crend(); ++it) {
EXPECT_EQ(values[i], *it);
--i;
}
}