declaration/definition switched files

For some reason, the declaration was in the source file. Don't ask why, I don't know
This commit is contained in:
Crzyrndm 2018-07-13 11:43:13 +12:00
parent 54b1affd1e
commit 24b4b6c628
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,10 @@ std::vector<std::pair<std::function<void(void)>, std::string>> &test_suite::test
return all_tests;
}
std::string build_name(const std::string &pretty, const std::string &method);
std::string build_name(const std::string &pretty, const std::string &method)
{
return pretty.substr(0, pretty.find("::") + 2) + method;
}
test_status test_suite::go()
{

View File

@ -22,10 +22,7 @@ struct test_status
std::vector<std::string> failures;
};
inline std::string build_name(const std::string &pretty, const std::string &method)
{
return pretty.substr(0, pretty.find("::") + 2) + method;
}
std::string build_name(const std::string &pretty, const std::string &method);
#define register_test(test) register_test_internal([this]() { test(); }, build_name(__FUNCTION__, #test));