Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:23:25

0001 #include "Utilities/Testing/interface/CppUnit_testdriver.icpp"
0002 #include "cppunit/extensions/HelperMacros.h"
0003 
0004 #include "L1Trigger/L1TMuonEndCap/interface/DebugTools.h"
0005 
0006 class TestDebugTools : public CppUnit::TestFixture {
0007   CPPUNIT_TEST_SUITE(TestDebugTools);
0008   CPPUNIT_TEST(test_assert);
0009   CPPUNIT_TEST_SUITE_END();
0010 
0011 public:
0012   TestDebugTools() {}
0013   ~TestDebugTools() {}
0014   void setUp() {}
0015   void tearDown() {}
0016 
0017   void test_assert();
0018 };
0019 
0020 ///registration of the test so that the runner can find it
0021 CPPUNIT_TEST_SUITE_REGISTRATION(TestDebugTools);
0022 
0023 using namespace emtf;
0024 
0025 void TestDebugTools::test_assert() {
0026   // emtf_assert should not cause an assertion failure in CMSSW production
0027   CPPUNIT_ASSERT_ASSERTION_PASS(emtf_assert(1 == 2));
0028 }