1 #define BOOST_TEST_MODULE (get sequence elements test) 3 #include "boost/test/unit_test.hpp" 27 BOOST_TEST(pset.get<
int>(
"g[0]") == 1);
28 BOOST_TEST(pset.get<
int>(
"h[0].h1") == 12);
29 BOOST_TEST(pset.get<
int>(
"m[0]") == -1);
30 BOOST_TEST(pset.get<
int>(
"vv[0][1]") == 2);
32 BOOST_TEST(pset.get<
std::string>(
"h[1].h2") ==
"h2");
37 auto const vec0 = pset.get<std::vector<int>>(
"vv[0]");
39 BOOST_TEST(vec0 == ref0);
41 auto vec1 = pset.get<std::vector<int>>(
"vv[1]");
43 BOOST_TEST(vec1 == ref1);
46 BOOST_AUTO_TEST_SUITE_END()
static ParameterSet make(intermediate_table const &tbl)
BOOST_AUTO_TEST_CASE(element_lookup)