diff options
author | Timothy Pearson <[email protected]> | 2012-01-13 15:08:46 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-01-13 15:08:46 -0600 |
commit | d497b1b0373d758ede3d877ab68c8d7c8ab29062 (patch) | |
tree | 00ebfc47087a5fd82949fc1abf08dd7e03c1c631 /indexlib/tests/match-test.cpp | |
parent | 639f34ef2efdec6ff0d1f47d919ca070d027fb80 (diff) | |
download | tdepim-d497b1b0373d758ede3d877ab68c8d7c8ab29062.tar.gz tdepim-d497b1b0373d758ede3d877ab68c8d7c8ab29062.zip |
Fix inadvertent TQt changes
This closes Bug 752
Diffstat (limited to 'indexlib/tests/match-test.cpp')
-rw-r--r-- | indexlib/tests/match-test.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/indexlib/tests/match-test.cpp b/indexlib/tests/match-test.cpp index a1a3930fa..16b8a8e95 100644 --- a/indexlib/tests/match-test.cpp +++ b/indexlib/tests/match-test.cpp @@ -11,15 +11,15 @@ void cleanup() { void simple() { cleanup(); Match m( "pat" ); - BOOST_CHECK_ETQUAL( m.process( "not here" ), false ); - BOOST_CHECK_ETQUAL( m.process( "p a t" ), false ); - BOOST_CHECK_ETQUAL( m.process( "pa t" ), false ); + BOOST_CHECK_EQUAL( m.process( "not here" ), false ); + BOOST_CHECK_EQUAL( m.process( "p a t" ), false ); + BOOST_CHECK_EQUAL( m.process( "pa t" ), false ); - BOOST_CHECK_ETQUAL( m.process( "pat" ), true ); - BOOST_CHECK_ETQUAL( m.process( "pattern" ), true ); - BOOST_CHECK_ETQUAL( m.process( " pat " ), true ); - BOOST_CHECK_ETQUAL( m.process( "zpat patx ipato " ), true ); + BOOST_CHECK_EQUAL( m.process( "pat" ), true ); + BOOST_CHECK_EQUAL( m.process( "pattern" ), true ); + BOOST_CHECK_EQUAL( m.process( " pat " ), true ); + BOOST_CHECK_EQUAL( m.process( "zpat patx ipato " ), true ); } void empty() { @@ -40,28 +40,28 @@ void string() { cleanup(); Match m( std::string( "pat" ) ); - BOOST_CHECK_ETQUAL( m.process( std::string( "not here" ) ), false ); - BOOST_CHECK_ETQUAL( m.process( std::string( "here pattern" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "not here" ) ), false ); + BOOST_CHECK_EQUAL( m.process( std::string( "here pattern" ) ), true ); } void casesensitive() { cleanup(); Match m( std::string( "pat" ), ~Match::caseinsensitive ); - BOOST_CHECK_ETQUAL( m.process( std::string( "PAT" ) ), false ); - BOOST_CHECK_ETQUAL( m.process( std::string( "aPATa" ) ), false ); - BOOST_CHECK_ETQUAL( m.process( std::string( "pAt" ) ), false ); - BOOST_CHECK_ETQUAL( m.process( std::string( "pattern" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "PAT" ) ), false ); + BOOST_CHECK_EQUAL( m.process( std::string( "aPATa" ) ), false ); + BOOST_CHECK_EQUAL( m.process( std::string( "pAt" ) ), false ); + BOOST_CHECK_EQUAL( m.process( std::string( "pattern" ) ), true ); } void caseinsensitive() { cleanup(); Match m( std::string( "pat" ), Match::caseinsensitive ); - BOOST_CHECK_ETQUAL( m.process( std::string( "PAT" ) ), true ); - BOOST_CHECK_ETQUAL( m.process( std::string( "aPATa" ) ), true ); - BOOST_CHECK_ETQUAL( m.process( std::string( "pAt" ) ), true ); - BOOST_CHECK_ETQUAL( m.process( std::string( "pattern" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "PAT" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "aPATa" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "pAt" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "pattern" ) ), true ); } @@ -69,16 +69,16 @@ void verylarge() { cleanup(); Match m( std::string( "pat0123456789012345678901234567890" ) ); - BOOST_CHECK_ETQUAL( m.process( std::string( "pat0123456789012345678901234567890" ) ), true ); - BOOST_CHECK_ETQUAL( m.process( std::string( "xxxxxxpat0123456789012345678901234567890" ) ), true ); - BOOST_CHECK_ETQUAL( m.process( std::string( "xxxxxxpat0123456789012345678901234567890xxxxxxxx" ) ), true ); - BOOST_CHECK_ETQUAL( m.process( std::string( "xxxxxxpat01234x6789012345678901234567890xxxxxxxx" ) ), false ); - BOOST_CHECK_ETQUAL( m.process( std::string( "xxxxxxpat01234x678901234567890123456789xxxxxxxxx" ) ), false ); + BOOST_CHECK_EQUAL( m.process( std::string( "pat0123456789012345678901234567890" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "xxxxxxpat0123456789012345678901234567890" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "xxxxxxpat0123456789012345678901234567890xxxxxxxx" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "xxxxxxpat01234x6789012345678901234567890xxxxxxxx" ) ), false ); + BOOST_CHECK_EQUAL( m.process( std::string( "xxxxxxpat01234x678901234567890123456789xxxxxxxxx" ) ), false ); m = Match( std::string( "12345678901234567890123456789012" ) ); - BOOST_CHECK_ETQUAL( m.process( std::string( "xxxxxxpat012345678901234567890123456789012xxxxxxxxx" ) ), true ); - BOOST_CHECK_ETQUAL( m.process( std::string( "xxxxxxpat012345678901234567890123456789012" ) ), true ); - BOOST_CHECK_ETQUAL( m.process( std::string( "xxxxxxpat01234x678901234567890123456789xxxxxxxxx" ) ), false ); + BOOST_CHECK_EQUAL( m.process( std::string( "xxxxxxpat012345678901234567890123456789012xxxxxxxxx" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "xxxxxxpat012345678901234567890123456789012" ) ), true ); + BOOST_CHECK_EQUAL( m.process( std::string( "xxxxxxpat01234x678901234567890123456789xxxxxxxxx" ) ), false ); } |