blob: e32ee10e61075b846effdbd6b58b365dd123e0ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <stdio.h>
#include <stdbool.h>
#define RED "\x1B[31m"
#define GRN "\x1B[32m"
#define CYAN "\x1B[36m"
#define RESET "\x1B[0m"
#define PASS "PASS!"
#define FAIL "FAIL!"
#define DEFAULT_ASSERT_MESSAGE "Assertion failed!"
#define draw(COLOR, TEXT) COLOR TEXT RESET
bool assert(bool expression, const char* message);
void unit_test(bool expression, const char* subject);
void start_test_section(const char* name);
bool report();
|