int setup(void) { linkedList_create(&list); if (list) { return 0; } else { // failure during setup return 1; } }
// write your own tests here (this one should print [1] [2] [3] [4], but it doesn't test all functionality) // I will post another test harness shortly int main(int argc, char *argv){ struct LinkedList *list = linkedList_create(); queue_pushBack(list, 1); queue_pushBack(list, 2); queue_pushBack(list, 3); queue_pushBack(list, 4); printLinkedList(list); linkedList_delete(list); }