feat(heap): not quite working pop

This commit is contained in:
Jef Roosens 2023-01-24 17:01:37 +01:00
parent 6cf4eaaf0b
commit 09c488aa0f
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 55 additions and 8 deletions

View file

@ -59,7 +59,7 @@ void test_pop() {
for (uint64_t i = 50; i > 0; i--) {
vieter_heap_insert(heap, i, (void *)i);
TEST_SIZE(heap, (uint64_t)50 - i);
TEST_SIZE(heap, (uint64_t)51 - i);
TEST_CHECK(vieter_heap_peek(&data, heap) == vieter_heap_ok);
TEST_CHECK(data == (void*)i);
@ -80,5 +80,6 @@ TEST_LIST = {
{"init", test_init},
{"merge same order", test_merge_same_order},
{"insert", test_insert},
{"pop", test_pop},
{NULL, NULL}
};