#include "fhiclcpp/ParameterSet.h"
#include <cassert>
#include <string>
Go to the source code of this file.
Definition at line 7 of file to_string_test.cc.
15 assert(pset1 == pset2);
17 assert(pset2.get<
int>(
"a") == 1);
18 assert(pset2.get<
unsigned int>(
"a") == 1);
19 assert(pset2.get<
int>(
"b") == -1);
22 assert(pset2.get<
double>(
"c") == 0.0);
23 assert(pset2.get<
double>(
"d") == 0.5);
25 assert(pset2.get<
std::string>(
"e").compare(
"rain") == 0);
26 assert(pset2.get<
std::string>(
"f").compare(
"32") == 0);
27 assert(pset2.get<
int>(
"f") == 32);
29 assert(pset2.get<std::vector<int>>(
"g")[2] == 3);
31 assert(pset2.get<std::vector<fhicl::ParameterSet>>(
"h")[1]
38 .compare(
"test") == 0);
static ParameterSet make(intermediate_table const &tbl)
T get(std::string const &key) const