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