|
|
@ -6,12 +6,10 @@ void printSuccess(const char method[]) {
|
|
|
|
unsigned long strLength = 18 + strlen(method);
|
|
|
|
unsigned long strLength = 18 + strlen(method);
|
|
|
|
char message[strLength];
|
|
|
|
char message[strLength];
|
|
|
|
|
|
|
|
|
|
|
|
printf("\n------------------------------");
|
|
|
|
|
|
|
|
strcpy(message, "\n");
|
|
|
|
strcpy(message, "\n");
|
|
|
|
strcat(message, method);
|
|
|
|
strcat(message, method);
|
|
|
|
strcat(message, " --> TEST PASSED");
|
|
|
|
strcat(message, " --> TEST PASSED");
|
|
|
|
printf("%s", message);
|
|
|
|
printf("%s", message);
|
|
|
|
printf("\n------------------------------");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void shouldReturnListLengthZero() {
|
|
|
|
void shouldReturnListLengthZero() {
|
|
|
@ -136,12 +134,18 @@ void shouldCopyPopulatedList() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
printf("============================================");
|
|
|
|
|
|
|
|
printf("\nSTART TESTING");
|
|
|
|
|
|
|
|
printf("\n============================================\n");
|
|
|
|
shouldReturnListLengthZero();
|
|
|
|
shouldReturnListLengthZero();
|
|
|
|
shouldReturnListLengthTwo();
|
|
|
|
shouldReturnListLengthTwo();
|
|
|
|
shouldReturnSortedList();
|
|
|
|
shouldReturnSortedList();
|
|
|
|
shouldClearList();
|
|
|
|
shouldClearList();
|
|
|
|
shouldReturnListMaxLengthTwenty();
|
|
|
|
shouldReturnListMaxLengthTwenty();
|
|
|
|
shouldCopyPopulatedList();
|
|
|
|
shouldCopyPopulatedList();
|
|
|
|
|
|
|
|
printf("\n\n============================================");
|
|
|
|
|
|
|
|
printf("\nFINISH TESTING");
|
|
|
|
|
|
|
|
printf("\n============================================");
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|