diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-13 15:08:46 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-13 15:08:46 -0600 |
commit | d497b1b0373d758ede3d877ab68c8d7c8ab29062 (patch) | |
tree | 00ebfc47087a5fd82949fc1abf08dd7e03c1c631 /indexlib/tests/leafdatavector-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/leafdatavector-test.cpp')
-rw-r--r-- | indexlib/tests/leafdatavector-test.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/indexlib/tests/leafdatavector-test.cpp b/indexlib/tests/leafdatavector-test.cpp index 565717f83..8763327e6 100644 --- a/indexlib/tests/leafdatavector-test.cpp +++ b/indexlib/tests/leafdatavector-test.cpp @@ -14,10 +14,10 @@ void simple() { cleanup(); leafdatavector f( fname ); f.add( 0, 1 ); - BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 1u ); - BOOST_CHECK_ETQUAL( f.get( 0 )[ 0 ], 1u ); + BOOST_CHECK_EQUAL( f.get( 0 ).size(), 1u ); + BOOST_CHECK_EQUAL( f.get( 0 )[ 0 ], 1u ); f.add( 0, 2 ); - BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 2u ); + BOOST_CHECK_EQUAL( f.get( 0 ).size(), 2u ); } void persistent() { @@ -28,7 +28,7 @@ void persistent() { } { leafdatavector f( fname ); - BOOST_CHECK_ETQUAL( f.get( 0 )[ 0 ], 1u ); + BOOST_CHECK_EQUAL( f.get( 0 )[ 0 ], 1u ); } } @@ -48,15 +48,15 @@ void complicated() { f.add( 0, 5 ); f.add( 0, 9 ); - BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 6u ); - BOOST_CHECK_ETQUAL( f.get( 1 ).size(), 3u ); - BOOST_CHECK_ETQUAL( f.get( 2 ).size(), 2u ); + BOOST_CHECK_EQUAL( f.get( 0 ).size(), 6u ); + BOOST_CHECK_EQUAL( f.get( 1 ).size(), 3u ); + BOOST_CHECK_EQUAL( f.get( 2 ).size(), 2u ); std::vector<unsigned> one = f.get( 1 ); std::sort( one.begin(), one.end() ); - BOOST_CHECK_ETQUAL( one.size(), 3u ); - BOOST_CHECK_ETQUAL( one[ 0 ], 3u ); - BOOST_CHECK_ETQUAL( one[ 1 ], 5u ); - BOOST_CHECK_ETQUAL( one[ 2 ], 8u ); + BOOST_CHECK_EQUAL( one.size(), 3u ); + BOOST_CHECK_EQUAL( one[ 0 ], 3u ); + BOOST_CHECK_EQUAL( one[ 1 ], 5u ); + BOOST_CHECK_EQUAL( one[ 2 ], 8u ); } void unique() { @@ -67,15 +67,15 @@ void unique() { f.add( 0, 1 ); f.add( 0, 1 ); - BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 1u ); + BOOST_CHECK_EQUAL( f.get( 0 ).size(), 1u ); f.add( 0, 4 ); - BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 2u ); + BOOST_CHECK_EQUAL( f.get( 0 ).size(), 2u ); f.add( 0, 1 ); f.add( 0, 4 ); - BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 2u ); + BOOST_CHECK_EQUAL( f.get( 0 ).size(), 2u ); } @@ -93,7 +93,7 @@ void large() { } for ( std::map<uint,uint>::const_iterator first = counts.begin(), past = counts.end(); first != past; ++first ) { - BOOST_CHECK_ETQUAL( first->second, f.get( first->first ).size() ); + BOOST_CHECK_EQUAL( first->second, f.get( first->first ).size() ); } } @@ -106,10 +106,10 @@ void one_zero() { f.add( 0, 1 ); f.add( 0, 3 ); - BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 3u ); - BOOST_CHECK_ETQUAL( f.get( 0 )[ 0 ], 0u ); - BOOST_CHECK_ETQUAL( f.get( 0 )[ 1 ], 1u ); - BOOST_CHECK_ETQUAL( f.get( 0 )[ 2 ], 3u ); + BOOST_CHECK_EQUAL( f.get( 0 ).size(), 3u ); + BOOST_CHECK_EQUAL( f.get( 0 )[ 0 ], 0u ); + BOOST_CHECK_EQUAL( f.get( 0 )[ 1 ], 1u ); + BOOST_CHECK_EQUAL( f.get( 0 )[ 2 ], 3u ); } |