10 #ifndef TEST_LINKEDLIST_H
11 #define TEST_LINKEDLIST_H
20 void test_linklist(
void){
27 for(
int i=40;i<80;i++)
28 _insertlist(pd, 23, i);
30 for(
int i=1;i<100;i++){
33 TEST_CHECK(pd.lines[i].list.first == NULL);
34 TEST_CHECK(pd.lines[i].list.last == NULL);
50 for(
int i=0;i<101;i++)
51 _insertlist(pd, 1, i);
53 for(
int i=0;i<101;i++)
56 TEST_CHECK(pd.lines[0].list.first == NULL);
57 TEST_CHECK(pd.lines[0].list.last == NULL);
58 TEST_CHECK(pd.lines[1].list.first == NULL);
59 TEST_CHECK(pd.lines[1].list.last == NULL);
int _popFirst(packData pd, int iLine)
Pop first item. Set popped item.avail (pack) to zero.
Definition: list.c:419
int _popLast(packData pd, int iLine)
Similar to _popFirst .
Definition: list.c:443
packData init_packData(int n, int l)
Initiate a package management problem.
Definition: list.c:43