blob: db63350dd5dbb41e599f8d8cf59f1bbeec6165cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#ifndef _BRANDT_TEST_H
#define _BRANDT_TEST_H
#include <stdio.h>
int tests_run = 0;
int ret = 0;
#define check(cond, message) do { if (!(cond)) { fputs(message, stderr); return 0; } } while (0)
#define run(test) do { tests_run++; if (!test()) ret = 1; } while (0)
#endif
|