#include "boost/test/unit_test.hpp"
#include "cetlib/container_algorithms.h"
#include "fhiclcpp/ParameterSet.h"
#include <string>
#include <vector>
Go to the source code of this file.
#define BOOST_TEST_MODULE (get via converter test) |
BOOST_AUTO_TEST_CASE |
( |
via_test |
| ) |
|
Definition at line 29 of file get_via_t.cc.
31 auto const config =
"number: 5 " 32 "names: ['Esther', 'Julian', 'Bobby']"s;
34 BOOST_TEST(pset.get<
int>(
"number") == 5);
36 auto check_value = [](
int const& i) {
return i == 5; };
37 auto const supplied_5 = pset.get<
bool,
int>(
"number", check_value);
38 BOOST_TEST(supplied_5);
40 auto const sorted_names = pset.get(
"names", to_sorted_names);
42 BOOST_TEST(sorted_names.names == ref);