blob: 93ba4cc173c5ab404fef68fb28f6da11f3bd60df (
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
|
#define MAX_INPUT_LEN 255
#define TB_IMPL
#include "../source/termbox2.h"
#include "../source/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));
}
|