Add minor adjustments/clean-up
This commit is contained in:
7
c/test.c
7
c/test.c
@@ -22,7 +22,12 @@ int main(int argc, char *argv[]) {
|
||||
for (int i = 0; i < test_size; i++) {
|
||||
a[i].value = &data_storage[i];
|
||||
}
|
||||
dlos_Heap heap = { .size = test_size, .arr = a, .compare = compare_nodes };
|
||||
dlos_Heap heap = {
|
||||
.size = test_size,
|
||||
.arr = a,
|
||||
.arr_size = test_size,
|
||||
.compare = compare_nodes
|
||||
};
|
||||
dlos_max_heap(&heap);
|
||||
dlos_sort_heap(&heap);
|
||||
for (int i = 0; i < test_size; i++) {
|
||||
|
Reference in New Issue
Block a user