1 #define BOOST_TEST_MODULE (Nested Validation) 3 #include "boost/test/unit_test.hpp" 13 using namespace fhicl;
15 using namespace string_literals;
20 Val_t pars{
Name(
"pars")};
28 validatedConfig.validate(
ps);
29 return validatedConfig;
33 BOOST_AUTO_TEST_SUITE(Nested_Validation)
37 string const good{
"pars: [X, [Y, Z]]"s};
38 std::vector<std::string>
const ref{
"Y"s,
"Z"s};
40 auto const& pars = validatedConfig().pars();
47 string const bad{
"pars: [ X ]"s};
53 string const bad{
"pars: [ X, 1 ]"s};
57 BOOST_AUTO_TEST_SUITE_END()
static ParameterSet make(intermediate_table const &tbl)
fhicl::Table< Config > validateConfig(std::string const &configStr)
ChannelGroupService::Name Name
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
typename config_impl< T >::type Config
static constexpr double ps
BOOST_AUTO_TEST_CASE(GoodTuple)
cet::coded_exception< error, detail::translate > exception