Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
fhiclcpp
fhiclcpp
test
equalTest.cc
Go to the documentation of this file.
1
#define BOOST_TEST_MODULE (equality test)
2
3
#include "boost/test/unit_test.hpp"
4
#include "
fhiclcpp/ParameterSet.h
"
5
#include "
fhiclcpp/test/boost_test_print_pset.h
"
6
7
using namespace
fhicl
;
8
9
BOOST_AUTO_TEST_SUITE(document_test)
10
11
BOOST_AUTO_TEST_CASE
(leading_zeros)
12
{
13
auto
const
pset1 =
ParameterSet::make
(
"x : 5"
);
14
auto
const
pset2 =
ParameterSet::make
(
"x : 005"
);
15
BOOST_TEST(pset1 == pset2);
16
BOOST_TEST(pset1.get<
int
>(
"x"
) == pset2.get<
int
>(
"x"
));
17
}
18
19
BOOST_AUTO_TEST_SUITE_END()
boost_test_print_pset.h
fhicl::ParameterSet::make
static ParameterSet make(intermediate_table const &tbl)
Definition:
ParameterSet.cc:68
ParameterSet.h
fhicl
Definition:
InputSourceFactory.h:7
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(leading_zeros)
Definition:
equalTest.cc:11
Generated by
1.8.11