// testList.c ... simple List testing client // Written by John Shepherd, March 2013 #include #include #include #include "Item.h" #include "List.h" int main(int argc, char *argv[]) { int i; List L = newList(); printf("test list"); assert(ListLength(L) == 0); showList(L); for (i = 0; i < 20; i++) ListInsert(L,i); assert(ListLength(L) == 20); printf("L: "); showList(L); printf("\n"); dropList(L); return 0; }