From 031ccb2d9e7993ed46bd40a5c3c78af86cb46ba4 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 14 Sep 2022 04:41:50 +0300 Subject: test: group unittests into sections --- src/unittest.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/unittest.h') diff --git a/src/unittest.h b/src/unittest.h index d2fd4ad..e32ee10 100644 --- a/src/unittest.h +++ b/src/unittest.h @@ -1,9 +1,10 @@ #include #include -#define RED "\x1B[31m" -#define GRN "\x1B[32m" -#define RESET "\x1B[0m" +#define RED "\x1B[31m" +#define GRN "\x1B[32m" +#define CYAN "\x1B[36m" +#define RESET "\x1B[0m" #define PASS "PASS!" #define FAIL "FAIL!" @@ -15,4 +16,6 @@ bool assert(bool expression, const char* message); void unit_test(bool expression, const char* subject); +void start_test_section(const char* name); + bool report(); -- cgit v1.2.3