Macros | Functions
equalTest.cc File Reference
#include "boost/test/unit_test.hpp"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/test/boost_test_print_pset.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   (equality test)
 

Functions

 BOOST_AUTO_TEST_CASE (leading_zeros)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (equality test)

Definition at line 1 of file equalTest.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( leading_zeros  )

Definition at line 11 of file equalTest.cc.

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 }
unique_ptr< InputSource > make(ParameterSet const &conf, InputSourceDescription &desc)