-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug-print-test.c
36 lines (30 loc) · 1.03 KB
/
debug-print-test.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
////////////////////////////////////////////
////////////////////////////////////////////
#include "debug-print-test/debug-print-test.h"
////////////////////////////////////////////
#include "ansi-codes/ansi-codes.h"
#include "c_fsio/include/fsio.h"
#include "c_greatest/greatest/greatest.h"
#include "c_stringfn/include/stringfn.h"
#include "c_vector/vector/vector.h"
#include "debug_print_h/include/debug_print.h"
#include "log/log.h"
#include "timestamp/timestamp.h"
////////////////////////////////////////////
TEST t_debug_print_test(){
int o = 123;
char *s = "abc123";
DEBUG_PRINT(s, .colorscheme = FORE_BLUE BACK_BLACK, .filestream = stdout);
DEBUG_PRINT(o, .colorscheme = FORE_BLACK BACK_WHITE, .filestream = stdout);
DEBUG_PRINT("OK", .colorscheme = FORE_YELLOW BACK_BLACK, .filestream = stderr);
PASS();
}
SUITE(s_debug_print_test) {
RUN_TEST(t_debug_print_test);
}
GREATEST_MAIN_DEFS();
int main(const int argc, const char **argv) {
GREATEST_MAIN_BEGIN();
RUN_SUITE(s_debug_print_test);
GREATEST_MAIN_END();
}