mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
Tests: Add test coverage for AK::IntrusiveList reverse iterator support
This commit is contained in:
parent
ef4fdcf76f
commit
ce74fce0df
|
@ -47,6 +47,13 @@ TEST_CASE(enumeration)
|
|||
actual_size++;
|
||||
}
|
||||
EXPECT_EQ(expected_size, actual_size);
|
||||
|
||||
size_t reverse_actual_size = 0;
|
||||
for (auto it = list.rbegin(); it != list.rend(); ++it) {
|
||||
reverse_actual_size++;
|
||||
}
|
||||
EXPECT_EQ(expected_size, reverse_actual_size);
|
||||
|
||||
while (auto elem = list.take_first()) {
|
||||
delete elem;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue