🐛 fix logic

This commit is contained in:
Niels Lohmann 2022-07-18 22:50:34 +02:00
parent 0841d58ab6
commit 2f80a8ee34
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -11,11 +11,7 @@ namespace utils
inline bool check_testsuite_downloaded()
{
std::unique_ptr<std::FILE, decltype(&std::fclose)> file(std::fopen(TEST_DATA_DIRECTORY "/README.md", "r"), &std::fclose);
if (file)
{
return false;
}
return true;
return file.operator bool();
}
TEST_CASE("check test suite is downloaded")