mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
AK: Add IntrusiveList::size_slow() to match InlineLinkedList
The functionality is needed to replace InlineLinkedList with IntrusiveList in the Kernel Process class.
This commit is contained in:
parent
3dfd450f2d
commit
f5e04759cc
2 changed files with 13 additions and 0 deletions
|
@ -47,6 +47,7 @@ TEST_CASE(enumeration)
|
|||
actual_size++;
|
||||
}
|
||||
EXPECT_EQ(expected_size, actual_size);
|
||||
EXPECT_EQ(expected_size, list.size_slow());
|
||||
|
||||
size_t reverse_actual_size = 0;
|
||||
for (auto it = list.rbegin(); it != list.rend(); ++it) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue