neue test defines
This commit is contained in:
parent
039cc4348d
commit
31a830e1ba
|
@ -6,6 +6,7 @@
|
|||
#define TESTDATA "./tests/data/"
|
||||
|
||||
#define ASSERT(BED, ERR) if(!(BED)) { std::cout << __FILE__ << ":" << __LINE__ << " " << ERR << std::endl; return TESTFAILED; }
|
||||
// #define ASSERT(BED) ASSERT(BED, "")
|
||||
#define CMPASSERTE(A, B, ERR) if( !((A) == (B))) { std::cout << __FILE__ << ":" << __LINE__ << " is: \"" << (A) << "\" should: \"" << (B) << "\""<< std::endl; return TESTFAILED; }
|
||||
#define CMPASSERT(A, B) CMPASSERTE(A, B, "")
|
||||
|
||||
typedef int (*test_t)();
|
||||
|
|
Loading…
Reference in New Issue