Go to the documentation of this file. 22 #ifndef XAPIAN_INCLUDED_TESTMACROS_H 23 #define XAPIAN_INCLUDED_TESTMACROS_H 27 #define DEFINE_TESTCASE_(T) static void test_##T() 28 #define TESTCASE(T) { #T, test_##T } 29 #define END_OF_TESTCASES { 0, 0 } 32 #define TEST_REL(A,REL,B) \ 33 TEST_AND_EXPLAIN((A) REL (B), \ 34 "Evaluates to: " << (A) << " "#REL" " << (B)) 36 #endif // XAPIAN_INCLUDED_TESTMACROS_H