diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /indexlib/tests/leafdatavector-test.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 8763327e6..565717f83 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_EQUAL( f.get( 0 ).size(), 1u ); - BOOST_CHECK_EQUAL( f.get( 0 )[ 0 ], 1u ); + BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 1u ); + BOOST_CHECK_ETQUAL( f.get( 0 )[ 0 ], 1u ); f.add( 0, 2 ); - BOOST_CHECK_EQUAL( f.get( 0 ).size(), 2u ); + BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 2u ); } void persistent() { @@ -28,7 +28,7 @@ void persistent() { } { leafdatavector f( fname ); - BOOST_CHECK_EQUAL( f.get( 0 )[ 0 ], 1u ); + BOOST_CHECK_ETQUAL( f.get( 0 )[ 0 ], 1u ); } } @@ -48,15 +48,15 @@ void complicated() { f.add( 0, 5 ); f.add( 0, 9 ); - BOOST_CHECK_EQUAL( f.get( 0 ).size(), 6u ); - BOOST_CHECK_EQUAL( f.get( 1 ).size(), 3u ); - BOOST_CHECK_EQUAL( f.get( 2 ).size(), 2u ); + BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 6u ); + BOOST_CHECK_ETQUAL( f.get( 1 ).size(), 3u ); + BOOST_CHECK_ETQUAL( f.get( 2 ).size(), 2u ); std::vector<unsigned> one = f.get( 1 ); std::sort( one.begin(), one.end() ); - BOOST_CHECK_EQUAL( one.size(), 3u ); - BOOST_CHECK_EQUAL( one[ 0 ], 3u ); - BOOST_CHECK_EQUAL( one[ 1 ], 5u ); - BOOST_CHECK_EQUAL( one[ 2 ], 8u ); + BOOST_CHECK_ETQUAL( one.size(), 3u ); + BOOST_CHECK_ETQUAL( one[ 0 ], 3u ); + BOOST_CHECK_ETQUAL( one[ 1 ], 5u ); + BOOST_CHECK_ETQUAL( one[ 2 ], 8u ); } void unique() { @@ -67,15 +67,15 @@ void unique() { f.add( 0, 1 ); f.add( 0, 1 ); - BOOST_CHECK_EQUAL( f.get( 0 ).size(), 1u ); + BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 1u ); f.add( 0, 4 ); - BOOST_CHECK_EQUAL( f.get( 0 ).size(), 2u ); + BOOST_CHECK_ETQUAL( f.get( 0 ).size(), 2u ); f.add( 0, 1 ); f.add( 0, 4 ); - BOOST_CHECK_EQUAL( f.get( 0 ).size(), 2u ); + BOOST_CHECK_ETQUAL( 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_EQUAL( first->second, f.get( first->first ).size() ); + BOOST_CHECK_ETQUAL( first->second, f.get( first->first ).size() ); } } @@ -106,10 +106,10 @@ void one_zero() { f.add( 0, 1 ); f.add( 0, 3 ); - 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 ); + 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 ); } |