3 /* PDCLib testing suite <_PDCLIB_test.h>
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
9 /* -------------------------------------------------------------------------- */
10 /* Helper macros for test drivers */
11 /* -------------------------------------------------------------------------- */
15 char const abcde[] = "abcde";
16 char const abcdx[] = "abcdx";
18 int NO_TESTDRIVER = 0;
20 //#define BEGIN_TESTS unsigned int rc = 0
21 static unsigned int rc = 0;
22 #define TESTCASE( x ) if ( x ) {} \
23 else { rc += 1; printf( "FAILED: " __FILE__ ", line %d - " #x "\n", __LINE__ ); }
24 #define TEST_RESULTS rc