16 lines
248 B
C++
16 lines
248 B
C++
|
#include "test.h"
|
||
|
|
||
|
#include <map>
|
||
|
#include <string>
|
||
|
|
||
|
#define REGISTERTEST(NAME) tests.insert({#NAME, TESTNAME(NAME)})
|
||
|
|
||
|
TESTFUNC(ABC);
|
||
|
TESTFUNC(CDE);
|
||
|
|
||
|
std::map<std::string, test_t> tests;
|
||
|
|
||
|
void loadTests() {
|
||
|
REGISTERTEST(ABC);
|
||
|
REGISTERTEST(CDE);
|
||
|
}
|