#include "boost/test/unit_test.hpp"
#include "fhiclcpp/ParameterSet.h"
#include <numeric>
#include <string>
#include <vector>
Go to the source code of this file.
#define BOOST_TEST_MODULE (to_indented_string test) |
BOOST_AUTO_TEST_CASE |
( |
atoms |
| ) |
|
Definition at line 28 of file to_indented_string_test.cc.
32 BOOST_TEST(to_ind_str(pset) ==
"");
35 BOOST_TEST(to_ind_str(pset) ==
"a: \"string1\"\n");
37 pset.
put<
int>(
"b", -1234);
38 BOOST_TEST(to_ind_str(pset) ==
"a: \"string1\"\n" 41 pset.
put<
bool>(
"c",
false);
42 BOOST_TEST(to_ind_str(pset) ==
"a: \"string1\"\n"
void put(std::string const &key)
BOOST_AUTO_TEST_CASE |
( |
sequences |
| ) |
|
Definition at line 47 of file to_indented_string_test.cc.
51 BOOST_TEST(to_ind_str(pset) ==
"a: []\n");
54 BOOST_TEST(to_ind_str(pset) ==
"a: []\n" 59 pset.
put<
ints>(
"c", {11, 12, 13});
60 BOOST_TEST(to_ind_str(pset) ==
"a: []\n"
void put(std::string const &key)
BOOST_AUTO_TEST_CASE |
( |
tables |
| ) |
|
Definition at line 71 of file to_indented_string_test.cc.
77 BOOST_TEST(to_ind_str(pset) ==
"p1: {}\n");
81 BOOST_TEST(to_ind_str(pset) ==
"p1: {}\n" 86 p.
put<
int>(
"b", -1234);
88 BOOST_TEST(to_ind_str(pset) ==
"p1: {}\n" 97 p.
put<
bool>(
"c",
false);
99 BOOST_TEST(to_ind_str(pset) ==
"p1: {}\n"
void put(std::string const &key)
BOOST_AUTO_TEST_CASE |
( |
combo |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
sequence_printout |
| ) |
|
Definition at line 130 of file to_indented_string_test.cc.
133 std::iota(v.begin(), v.end(), 1);
140 BOOST_TEST(to_ind_str(pset) ==
"p: {\n"
void put(std::string const &key)
BOOST_AUTO_TEST_CASE |
( |
nested_sequence_printout_empty |
| ) |
|
Definition at line 166 of file to_indented_string_test.cc.
174 BOOST_TEST(to_ind_str(pset) ==
"p: {\n" std::vector< ints > nested_ints
void put(std::string const &key)
BOOST_AUTO_TEST_CASE |
( |
nested_sequence_printout |
| ) |
|
Definition at line 179 of file to_indented_string_test.cc.
182 std::iota(v.begin(), v.end(), 1);
192 BOOST_TEST(to_ind_str(pset) ==
"p: {\n" std::vector< ints > nested_ints
void put(std::string const &key)