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