blob: d2fd4ad37d6fd420fcc4ad784ce0421f5022a4aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <stdio.h>
#include <stdbool.h>
#define RED "\x1B[31m"
#define GRN "\x1B[32m"
#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);
bool report();
|