aboutsummaryrefslogtreecommitdiff
path: root/src/gistatic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gistatic.c')
-rw-r--r--src/gistatic.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/gistatic.c b/src/gistatic.c
index b356748..92bcf7d 100644
--- a/src/gistatic.c
+++ b/src/gistatic.c
@@ -14,7 +14,27 @@
#ifdef TEST
-#include "unit-test.h"
+#define COLOUR_RESET "\033[0m"
+#define COLOUR_GREEN "\033[0;32m"
+#define COLOUR_YELLOW "\033[0;33m"
+
+void test_start(const char *const name) {
+ assert(fprintf(stderr, "%s():\n", name) > 0);
+}
+
+void testing(const char *const message) {
+ assert(
+ fprintf(
+ stderr,
+ COLOUR_YELLOW "testing" COLOUR_RESET ": %s...",
+ message
+ ) > 0
+ );
+}
+
+void test_ok() {
+ assert(fprintf(stderr, " " COLOUR_GREEN "OK" COLOUR_RESET ".\n") > 0);
+}
#endif