blob: 3cd33a832aa7929f8d73274c99f6ff7776367394 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* test
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
*/
#ifndef TEST_H
#define TEST_H TEST_H
#include <stdio.h>
#define NO_TESTDRIVER 0
static int TEST_RESULTS = 0;
#define TESTCASE( x ) if ( x ) {} \
else { TEST_RESULTS += 1; printf( "FAILED: " __FILE__ ", line %d - %s\n", __LINE__, #x ); }
#endif
|