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";
17 char const * teststring = "1234567890\nABCDEFGHIJKLMNOPQRSTUVWXYZ\nabcdefghijklmnopqrstuvwxyz\n";
19 int NO_TESTDRIVER = 0;
23 #define TESTCASE( x ) if ( x ) {} \
24 else { rc += 1; printf( "FAILED: " __FILE__ ", line %d - %s\n", __LINE__, #x ); }
27 #define TESTCASE_NOREG( x ) TESTCASE( x )
29 #define TESTCASE_NOREG( x )
32 #define TEST_RESULTS rc