neue test defines

This commit is contained in:
MrBesen 2021-06-01 10:48:28 +02:00
parent 039cc4348d
commit 31a830e1ba
1 changed files with 2 additions and 1 deletions

View File

@ -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)();