Commit 7ca7ddcc authored by Dominik Charousset's avatar Dominik Charousset

Fix linked_list test for pop_front

parent 4357bdf4
......@@ -148,9 +148,9 @@ TEST("pop_front removes the oldest element of a list and returns it") {
fill(uut, 1, 2, 3);
check_eq(uut.pop_front()->value, 1);
if (check_eq(uut.size(), 2u))
check_eq(uut.pop_front()->value, 1);
check_eq(uut.pop_front()->value, 2);
if (check_eq(uut.size(), 1u))
check_eq(uut.pop_front()->value, 1);
check_eq(uut.pop_front()->value, 3);
check(uut.empty());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment