Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Jan 24, 2025
1 parent 5b988a0 commit 9c33ada
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ BOOST_AUTO_TEST_CASE(ten_timesteps_var_with_literal_bounds_to_filler__problem_co
{
createModelWithOneFloatVar("some_model", {}, "var1", literal(-5), literal(10), {}, nullptr, true);
createComponent("some_model", "some_component");
constexpr unsigned int last_time_step = 10;
constexpr unsigned int last_time_step = 9;
FillContext ctx{0, last_time_step};
buildLinearProblem(ctx);
const auto nb_var = ctx.getNumberOfTimestep(); // = 10
BOOST_CHECK_EQUAL(pb->variableCount(), 10);
BOOST_CHECK_EQUAL(pb->variableCount(), nb_var);
BOOST_CHECK_EQUAL(pb->constraintCount(), 0);
for (unsigned int i = 0; i < nb_var; i++)
{
Expand Down

0 comments on commit 9c33ada

Please sign in to comment.