forked from vieter-v/libvieter
feat(heap): not quite working pop
This commit is contained in:
parent
6cf4eaaf0b
commit
09c488aa0f
4 changed files with 55 additions and 8 deletions
|
|
@ -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}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue