Improve coverage of prioriy queue.

This commit is contained in:
Patrick Pelissier committed 2020-11-08 01:00:17 +01:00
1 parent e77aec4619
commit 85c4b50b6f
1 file changed
+11
+11
View File
@@ -101,6 +101,17 @@ static void test2(void)
assert (x == i);
}
assert (int_pqueue_size(p) == 0);
for(int i = -100; i < 100; i++) {
int_pqueue_push(p, i);
}
assert (int_pqueue_size(p) == 200);
for(int i = -100; i < 100; i++) {
bool b = int_pqueue_erase(p, i);
assert (b);
}
assert (int_pqueue_size(p) == 0);
int_pqueue_clear(p);
}