Skip to content

Commit

Permalink
New hydro remix : make a test rightfully fail
Browse files Browse the repository at this point in the history
  • Loading branch information
guilpier-code committed Dec 18, 2024
1 parent 4c8d407 commit 88dd5ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/src/solver/simulation/test-hydro-remix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ BOOST_AUTO_TEST_CASE(what_if_levels_are_up_bounded_by_capacity)
// Bad ! Levels not limited by capacity.
std::vector<double> expected_levels = {520., 540., 560., 580., 600.};
BOOST_TEST(levels == expected_levels, boost::test_tools::per_element());

BOOST_CHECK(std::ranges::all_of(levels, [&capacity](double e) { return e <= capacity; }));
}

// Ideas for building further tests :
Expand Down

0 comments on commit 88dd5ae

Please sign in to comment.