aboutsummaryrefslogtreecommitdiff
path: root/spec/testUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'spec/testUtils.h')
-rw-r--r--spec/testUtils.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/testUtils.h b/spec/testUtils.h
index 37bc9f9..a20291c 100644
--- a/spec/testUtils.h
+++ b/spec/testUtils.h
@@ -7,22 +7,27 @@
#define NOT !
#define ANSI_BOLD "\x1b[1m"
+#define COLOR_DESCRIBE ANSI_BOLD
#define COLOR_CONTEXT "\x1b[32m" ANSI_BOLD
#define COLOR_IT "\x1b[36m" ANSI_BOLD
#define COLOR_SKIP "\x1b[33m" ANSI_BOLD
#define ANSI_RESET "\x1b[0m"
+#define describe(msg) \
+ printf(COLOR_DESCRIBE "%s" ANSI_RESET "\n", msg); \
+ fflush(stdout);
+
#define context(msg) \
- printf("⚪" COLOR_CONTEXT "%s" ANSI_RESET "\n", msg); \
+ printf("│ " COLOR_CONTEXT "%s" ANSI_RESET "\n", msg); \
fflush(stdout);
#define it(msg) \
- printf(" ⚪" ANSI_BOLD COLOR_IT "it " ANSI_RESET COLOR_IT "%s" ANSI_RESET "\n", msg); \
+ printf("└─⚪" ANSI_BOLD COLOR_IT "it " ANSI_RESET COLOR_IT "%s" ANSI_RESET "\n", msg); \
fflush(stdout); \
if (1)
#define xit(msg) \
- printf(" ⚪" COLOR_SKIP "SKIPPED it %s" ANSI_RESET "\n", msg); \
+ printf("└─⚪" COLOR_SKIP "SKIPPED it %s" ANSI_RESET "\n", msg); \
fflush(stdout); \
if (0)