Skip to content

Commit

Permalink
test file not yml
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 20, 2024
1 parent b5a44c7 commit beb7339
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ BOOST_FIXTURE_TEST_CASE(read_one_lib_file, FixtureLoadFile)
BOOST_CHECK_EQUAL(libraries[0].Id(), "lib_id");
}

BOOST_FIXTURE_TEST_CASE(dont_read_bad_extension, FixtureLoadFile)
{
createFile(studyPath, "abc.txt");
auto libraries = Antares::Solver::LoadFiles::loadLibraries(studyPath);
BOOST_CHECK(libraries.empty());
}

BOOST_FIXTURE_TEST_CASE(read_several_lib_file, FixtureLoadFile)
{
std::ofstream libStream(libraryDirPath / "simple.yml");
Expand Down

0 comments on commit beb7339

Please sign in to comment.