#ifndef BOOST_TEST_MODULE # error "Please #define BOOST_TEST_MODULE before you #include " #endif #ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST # include #else # include #endif #include #include static inline auto testinput(const std::string& basename) -> std::string { const auto this_or_that = [](const char *const s, const char *const t) { return s ? s : t; }; std::string directory = this_or_that(std::getenv("TOMLDIR"), "toml"); if (!directory.empty() && directory.back() != '/') { directory.push_back('/'); } return directory.append("tests/").append(basename); }