#include "boost/test/unit_test.hpp"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/types/Name.h"
#include "fhiclcpp/types/Sequence.h"
#include "fhiclcpp/types/Table.h"
#include "fhiclcpp/types/Tuple.h"
#include <string>
Go to the source code of this file.
#define BOOST_TEST_MODULE (Bounded sequences with defaults) |
BOOST_AUTO_TEST_CASE |
( |
GoodArray |
| ) |
|
Definition at line 39 of file bounded_sequences_with_defaults_t.cc.
42 auto const& validated = validate<ArrayConfig>(good);
43 BOOST_TEST(validated().composers(0) ==
"Mahler"s);
44 BOOST_TEST(validated().composers(1) ==
"Elgar"s);
BOOST_AUTO_TEST_CASE |
( |
GoodTuple |
| ) |
|
Definition at line 47 of file bounded_sequences_with_defaults_t.cc.
50 auto const& validated = validate<TupleConfig>(good);
51 BOOST_TEST(validated().ages.get<0>() ==
"David"s);
52 BOOST_TEST(validated().ages.get<1>() == 9u);
BOOST_AUTO_TEST_CASE |
( |
BadSequence |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
BadTuple |
| ) |
|