Makes the new interface compile against tests.

This commit is contained in:
Williham Williham Totland
2020-04-01 11:56:07 +02:00
parent efff382517
commit 9f7664fe13
6 changed files with 85 additions and 9 deletions

View File

@@ -127,8 +127,8 @@ RPTSCHED
auto report_config = sched.report_config(0);
BOOST_CHECK_EQUAL(report_config.size(), 0);
BOOST_CHECK(!report_config.has("FIPFOAM"));
BOOST_CHECK_THROW( report_config.get("FIPFOAM"), std::out_of_range);
BOOST_CHECK(!report_config.contains("FIPFOAM"));
BOOST_CHECK_THROW( report_config.at("FIPFOAM"), std::out_of_range);
}
// Configuration at step 1
@@ -144,10 +144,10 @@ RPTSCHED
BOOST_CHECK_EQUAL(p.second, 3);
}
BOOST_CHECK(!report_config.has("FIPFOAM"));
BOOST_CHECK(report_config.has("FIP"));
BOOST_CHECK_EQUAL(report_config.get("FIP"), 3);
BOOST_CHECK_EQUAL(report_config.get("FIPSOL"), 1);
BOOST_CHECK(!report_config.contains("FIPFOAM"));
BOOST_CHECK(report_config.contains("FIP"));
BOOST_CHECK_EQUAL(report_config.at("FIP"), 3);
BOOST_CHECK_EQUAL(report_config.at("FIPSOL"), 1);
}
// Configuration at step 2 - the special 'NOTHING' has cleared everything
@@ -155,7 +155,7 @@ RPTSCHED
auto report_config = sched.report_config(2);
BOOST_CHECK_EQUAL(report_config.size(), 0);
BOOST_CHECK(!report_config.has("FIPFOAM"));
BOOST_CHECK_THROW( report_config.get("FIPFOAM"), std::out_of_range);
BOOST_CHECK(!report_config.contains("FIPFOAM"));
BOOST_CHECK_THROW( report_config.at("FIPFOAM"), std::out_of_range);
}
}