diff options
author | xengineering <me@xengineering.eu> | 2022-12-01 22:02:19 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-12-01 22:02:19 +0100 |
commit | 20b08c08e6ec36ba0326dc491a9d179d6519ab45 (patch) | |
tree | 0bb0d6706d69f877305665b631199a29a5abb761 | |
parent | aa1ad39a6fdb060139185a72db20a1155b33b170 (diff) | |
download | limox-20b08c08e6ec36ba0326dc491a9d179d6519ab45.tar limox-20b08c08e6ec36ba0326dc491a9d179d6519ab45.tar.zst limox-20b08c08e6ec36ba0326dc491a9d179d6519ab45.zip |
Implement colored output for test
-rw-r--r-- | tests/get_domainpart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/get_domainpart.c b/tests/get_domainpart.c index e05aee1..92b7918 100644 --- a/tests/get_domainpart.c +++ b/tests/get_domainpart.c @@ -14,10 +14,10 @@ int main(void) char *result = get_domainpart(input); if (strcmp(result, expected) == 0) { - printf("Unit test passed - ok\n"); + printf("Unit test passed - \033[;32mok\033[0m\n"); return 0; } else { - printf("'%s' != '%s'!\n", result, expected); + printf("'%s' != '%s' - \033[;31mfailed\033[0m\n", result, expected); return 1; } } |