From 328482dc55cf1405ba69f0f533aaee94e3de565a Mon Sep 17 00:00:00 2001 From: Hammy Date: Sun, 26 Dec 2021 03:02:13 +0000 Subject: [PATCH] Modify test console formatting --- src/test/test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/test.c b/src/test/test.c index 1788a68..f6ddd06 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -6,12 +6,10 @@ void printSuccess(const char method[]) { unsigned long strLength = 18 + strlen(method); char message[strLength]; - printf("\n------------------------------"); strcpy(message, "\n"); strcat(message, method); strcat(message, " --> TEST PASSED"); printf("%s", message); - printf("\n------------------------------"); } void shouldReturnListLengthZero() { @@ -136,12 +134,18 @@ void shouldCopyPopulatedList() { } int main() { + printf("============================================"); + printf("\nSTART TESTING"); + printf("\n============================================\n"); shouldReturnListLengthZero(); shouldReturnListLengthTwo(); shouldReturnSortedList(); shouldClearList(); shouldReturnListMaxLengthTwenty(); shouldCopyPopulatedList(); + printf("\n\n============================================"); + printf("\nFINISH TESTING"); + printf("\n============================================"); return 0; }