mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
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:
parent
54b1affd1e
commit
24b4b6c628
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user