#include "RegEx.h" #include class testRegEx : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE( testRegEx ); CPPUNIT_TEST( testConstructor ); CPPUNIT_TEST( testOther ); CPPUNIT_TEST_SUITE_END(); public: void setUp() { } void tearDown() { } /* * */ void testConstructor() { } /* * */ void testOther() { /* CPPUNIT_ASSERT( RegEx( "([0-9]{2}|[0-9]):[0-9]{2}:[0-9]{2},[0-9]{3}" "--> " "([0-9]{2}|[0-9]):[0-9]{2}:[0-9]{2},[0-9]{3}" ).exec("1:10:20,556 --> 2:15:00,132")); CPPUNIT_ASSERT( RegEx("^--").exec("--Bonjours!") ); CPPUNIT_ASSERT( RegEx("^--").exec("blabla --") == false); CPPUNIT_ASSERT( RegEx("(^--|$!)").exec("--Bonjours!") ); */ } }; // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION(testRegEx);