blob: a9a73a173e17113f640b9177ebc9717f471c369a (
plain)
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
37
|
#define MAX_INPUT_LEN 255
#define TB_IMPL
#include "external/termbox2.h"
#include "chatty.h"
#define TEST_IMPL
#include "test.h"
#define Assert(expr) if (!(expr)) *(u8*)0 = 0
bool
DrawingTest(void)
{
struct tb_event ev = {0};
return true;
}
int
main(int Argc, char* Argv[])
{
test_functions TestFunctions[] = {
TESTFUNC(DrawingTest),
{ 0 }
};
Assert(setlocale(LC_ALL, ""));
Before = (void(*)(void))tb_init;
After = (void(*)(void))tb_shutdown;
return(Test(TestFunctions, Argc, Argv));
}
|