equalTest.cc
Go to the documentation of this file.
1 #define BOOST_TEST_MODULE (equality test)
2 
3 #include "boost/test/unit_test.hpp"
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()
static ParameterSet make(intermediate_table const &tbl)
Definition: ParameterSet.cc:68
BOOST_AUTO_TEST_CASE(leading_zeros)
Definition: equalTest.cc:11