Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:00

0001 #include <cppunit/extensions/HelperMacros.h>
0002 
0003 #include "FWCore/ParameterSet/interface/defaultModuleLabel.h"
0004 
0005 class testDefaultModuleLabel : public CppUnit::TestFixture {
0006   CPPUNIT_TEST_SUITE(testDefaultModuleLabel);
0007   CPPUNIT_TEST(test);
0008   CPPUNIT_TEST_SUITE_END();
0009 
0010 public:
0011   void setUp() {}
0012   void tearDown() {}
0013 
0014   void test();
0015 };
0016 
0017 CPPUNIT_TEST_SUITE_REGISTRATION(testDefaultModuleLabel);
0018 
0019 void testDefaultModuleLabel::test() {
0020   CPPUNIT_ASSERT(edm::defaultModuleLabel("Dummy") == "dummy");
0021   CPPUNIT_ASSERT(edm::defaultModuleLabel("DummyCamelCaps") == "dummyCamelCaps");
0022   CPPUNIT_ASSERT(edm::defaultModuleLabel("ALLCAPS") == "allcaps");
0023   CPPUNIT_ASSERT(edm::defaultModuleLabel("STARTCaps") == "startCaps");
0024   CPPUNIT_ASSERT(edm::defaultModuleLabel("colons::Test") == "colonsTest");
0025 }
0026 
0027 #include <Utilities/Testing/interface/CppUnit_testdriver.icpp>