Skip to content

Commit

Permalink
Revert faulty test-case
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Sep 12, 2023
1 parent 5a0f05b commit f34b711
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,31 +315,4 @@ BOOST_AUTO_TEST_CASE(On_year_9__RHS_TS_number_4_out_of_bound_use_random_fallback
BOOST_TEST(output.flow(link).hour(0) == 0., tt::tolerance(0.001));
}

BOOST_AUTO_TEST_CASE(On_year_9__RHS_TS_number_4_out_of_bound_use_random_fallback_to_Oth_column)
{
int nbYears = 10;

setNumberMCyears(study, nbYears);

BC->mutateTypeWithoutCheck(BindingConstraint::typeHourly);
BC->operatorType(BindingConstraint::opEquality);

unsigned int numberOfTS = 1;
BCrhsConfig bcRHSconfig(BC, numberOfTS);
bcRHSconfig.fillTimeSeriesWith(0, 0.);

BCgroupScenarioBuilder bcGroupScenarioBuilder(study, nbYears);
for (int y = 0; y < 10; y++)
bcGroupScenarioBuilder.yearGetsTSnumber(BC->group(), y, 0);

bcGroupScenarioBuilder.yearGetsTSnumber(BC->group(), 8, 42); // Here year 9

simulation->create();
giveWeigthOnlyToYear(8);
simulation->run();

unsigned int hour = 0;
BOOST_TEST(getLinkFlowAthour(simulation->get(), link, hour) == 0., tt::tolerance(0.001));
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit f34b711

Please sign in to comment.