1 #define BOOST_TEST_MODULE (keymap test) 4 #include "boost/test/unit_test.hpp" 13 using namespace fhicl;
23 BOOST_AUTO_TEST_SUITE(types_keymap_test)
30 table.validate(create_PSet(
file).get<fhicl::ParameterSet>(
"pset"));
41 table.validate(create_PSet(
file).get<fhicl::ParameterSet>(
"pset"));
42 BOOST_TEST(table().flag() ==
false);
43 BOOST_TEST(table().num2() == 4);
44 BOOST_TEST(table().shape() ==
"sphere");
45 BOOST_TEST(table().sphereParams().radius() == 7);
52 table.validate(create_PSet(
file).get<fhicl::ParameterSet>(
"pset"));
53 BOOST_TEST(table().flag() ==
true);
55 BOOST_TEST(table().num1(number) ==
false);
56 BOOST_TEST(table().shape() ==
"box");
58 auto hls = table().boxParams().halfLengths();
59 BOOST_TEST(hls() == ref, boost::test_tools::per_element{});
60 BOOST_TEST(table().boxParams().
material() ==
"Wood");
62 BOOST_TEST(table().boxParams().boxName(name) ==
true);
63 BOOST_TEST(name ==
"Stan");
66 BOOST_AUTO_TEST_SUITE_END()
static ParameterSet make(intermediate_table const &tbl)
ChannelGroupService::Name Name
BOOST_AUTO_TEST_CASE(cond_01_t)
char const * what() const noexcept override
QTextStream & endl(QTextStream &s)