defaultcpp/tests/tests.cpp

16 lines
248 B
C++
Raw Normal View History

2021-11-12 16:36:49 +01:00
#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);
}