Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Feb 17, 2025
1 parent 8cffb84 commit 9b1768e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/src/solver/simulation/tests-ts-numbers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,21 @@ BOOST_AUTO_TEST_CASE(test_compare_function_identical_values_OK)
{
using namespace Antares::Solver::TimeSeriesNumbers;
std::vector<std::pair<unsigned, std::string>> list = {{4, ""}, {4, ""}, {4, ""}, {4, ""}};
BOOST_CHECK(checkAllElementsIdenticalOrOne(list));
BOOST_CHECK(Utils::checkAllElementsIdenticalOrOne(list));
}

BOOST_AUTO_TEST_CASE(test_compare_function_identical_values_and_one_OK)
{
using namespace Antares::Solver::TimeSeriesNumbers;
std::vector<std::pair<unsigned, std::string>> list = {{4, ""}, {4, ""}, {4, ""}, {1, ""}};
BOOST_CHECK(checkAllElementsIdenticalOrOne(list));
BOOST_CHECK(Utils::checkAllElementsIdenticalOrOne(list));
}

BOOST_AUTO_TEST_CASE(test_compare_function_one_and_identical_values_OK)
{
using namespace Antares::Solver::TimeSeriesNumbers;
std::vector<std::pair<unsigned, std::string>> list = {{1, ""}, {4, ""}, {4, ""}, {4, ""}};
BOOST_CHECK(checkAllElementsIdenticalOrOne(list));
BOOST_CHECK(Utils::checkAllElementsIdenticalOrOne(list));
}

BOOST_AUTO_TEST_CASE(test_compare_function_two_distinct_values_of_which_one_KO)
Expand All @@ -114,7 +114,7 @@ BOOST_AUTO_TEST_CASE(test_compare_function_two_distinct_values_of_which_one_KO)
{2, ""},
{1, ""},
{3, ""}};
BOOST_CHECK(!checkAllElementsIdenticalOrOne(list));
BOOST_CHECK(!Utils::checkAllElementsIdenticalOrOne(list));
}

BOOST_AUTO_TEST_CASE(test_compare_function_three_distinct_values_KO)
Expand All @@ -126,7 +126,7 @@ BOOST_AUTO_TEST_CASE(test_compare_function_three_distinct_values_KO)
{3, ""},
{2, ""},
{1, ""}};
BOOST_CHECK(!checkAllElementsIdenticalOrOne(list));
BOOST_CHECK(!Utils::checkAllElementsIdenticalOrOne(list));
}

BOOST_AUTO_TEST_CASE(two_areas_with_5_ready_made_ts_on_load___check_intra_modal_consistency_OK)
Expand Down

0 comments on commit 9b1768e

Please sign in to comment.