diff --git a/tests/helpers/test_suite.cpp b/tests/helpers/test_suite.cpp index 272ed938..336f48b3 100644 --- a/tests/helpers/test_suite.cpp +++ b/tests/helpers/test_suite.cpp @@ -7,7 +7,10 @@ std::vector, 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() { diff --git a/tests/helpers/test_suite.hpp b/tests/helpers/test_suite.hpp index 47ea98a2..89062c89 100644 --- a/tests/helpers/test_suite.hpp +++ b/tests/helpers/test_suite.hpp @@ -22,10 +22,7 @@ struct test_status std::vector 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));