diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-09-14 04:41:50 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-09-14 04:41:50 +0300 |
commit | 031ccb2d9e7993ed46bd40a5c3c78af86cb46ba4 (patch) | |
tree | 6f95027d51b093f72c1e33f57da176a02d7819d4 /src/unittest.h | |
parent | efa8671eecdabcdccecde87c1d05acbc89295f49 (diff) | |
download | j1chess-031ccb2d9e7993ed46bd40a5c3c78af86cb46ba4.tar.gz |
test: group unittests into sections
Diffstat (limited to 'src/unittest.h')
-rw-r--r-- | src/unittest.h | 9 |
1 files changed, 6 insertions, 3 deletions
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 <stdio.h> #include <stdbool.h> -#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(); |