From 88dd5ae9b4d74e8ad0d8cc754e00ba15c3f1f77e Mon Sep 17 00:00:00 2001 From: Guillaume PIERRE Date: Wed, 18 Dec 2024 11:52:17 +0100 Subject: [PATCH] New hydro remix : make a test rightfully fail --- src/tests/src/solver/simulation/test-hydro-remix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/src/solver/simulation/test-hydro-remix.cpp b/src/tests/src/solver/simulation/test-hydro-remix.cpp index eda4954719..c226fc5281 100644 --- a/src/tests/src/solver/simulation/test-hydro-remix.cpp +++ b/src/tests/src/solver/simulation/test-hydro-remix.cpp @@ -378,6 +378,8 @@ BOOST_AUTO_TEST_CASE(what_if_levels_are_up_bounded_by_capacity) // Bad ! Levels not limited by capacity. std::vector 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 :