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