Modify test console formatting

main
Hammy 3 years ago
parent dfbc0a0d07
commit 328482dc55

@ -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;
} }

Loading…
Cancel
Save