21 for (
int i=1;i<=40;i++){
22 _insertHeap(pd, 0, i);
26 for (
int i=40;i>=1;i--){
27 a = _popMaxHeap(pd, 0);
29 TEST_MSG(
"Exp: %d ; Got: %d",i, a);
32 TEST_CHECK(pd.lines[0].heap == NULL);
38 void test_heapMerge(
void){
43 for (
int i=1;i<=20;i++){
46 for (
int i=21;i<=40;i++){
52 TEST_CHECK(pd.lines[1].heap == NULL);
56 for (
int i=40;i>=1;i--){
57 a = _popMaxHeap(pd, 0);
59 TEST_MSG(
"Exp: %d ; Got: %d",i, a);
62 TEST_CHECK(pd.lines[0].heap == NULL);
packData init_packData(int n, int l)
Initiate a package management problem.
Definition: list.c:43