Skip to content

Commit

Permalink
Add out of order
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Dec 19, 2024
1 parent c429a4c commit 4b54048
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/tests/src/solver/modeler/parameters/testParametersParsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,24 @@ no-output: true)";
BOOST_CHECK_EQUAL(params.noOutput, true);
}

BOOST_AUTO_TEST_CASE(all_properties_set_out_of_order)
{
const auto working_tmp_dir = CREATE_TMP_DIR_BASED_ON_TEST_NAME();
const auto fileP = working_tmp_dir / "parameters.yaml";
{
std::ofstream param(fileP);
param << R"(
solver-logs: false
solver: sirius
solver-parameters: PRESOLVE 1
no-output: true)";
}

auto params = Antares::Solver::parseModelerParameters(fileP);
BOOST_CHECK_EQUAL(params.solver, "sirius");
BOOST_CHECK_EQUAL(params.solverLogs, false);
BOOST_CHECK_EQUAL(params.solverParameters, "PRESOLVE 1");
BOOST_CHECK_EQUAL(params.noOutput, true);
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 4b54048

Please sign in to comment.