Add has_control() functionality to group

This commit is contained in:
Joakim Hove
2019-08-08 18:39:13 +02:00
parent bd28038327
commit f63c408ba4
5 changed files with 74 additions and 16 deletions

View File

@@ -1145,6 +1145,8 @@ BOOST_AUTO_TEST_CASE(createDeckModifyMultipleGCONPROD) {
{
auto g = schedule.getGroup2("G1", 1);
BOOST_CHECK_EQUAL(g.productionControls(st).oil_target, 1000 * siFactorL);
BOOST_CHECK(g.has_control(GroupProduction::ORAT));
BOOST_CHECK(!g.has_control(GroupProduction::WRAT));
}
{
auto g = schedule.getGroup2("G1", 2);