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/stringarray-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/stringarray-test.cpp')
-rw-r--r-- | indexlib/tests/stringarray-test.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/indexlib/tests/stringarray-test.cpp b/indexlib/tests/stringarray-test.cpp index d0f5ecef..110b82c9 100644 --- a/indexlib/tests/stringarray-test.cpp +++ b/indexlib/tests/stringarray-test.cpp @@ -17,21 +17,21 @@ void test_size() { test.add( "one" ); test.add( "one" ); test.add( "one" ); - //BOOST_CHECK_EQUAL( test.size(), 4 ); + //BOOST_CHECK_ETQUAL( test.size(), 4 ); cleanup(); } void test_put_recover() { stringarray test( fname ); - BOOST_CHECK_EQUAL( test.add( "one" ), 0 ); - BOOST_CHECK_EQUAL( test.add( "two" ), 1 ); - BOOST_CHECK_EQUAL( test.add( "three" ), 2 ); - BOOST_CHECK_EQUAL( test.add( "four" ), 3 ); + BOOST_CHECK_ETQUAL( test.add( "one" ), 0 ); + BOOST_CHECK_ETQUAL( test.add( "two" ), 1 ); + BOOST_CHECK_ETQUAL( test.add( "three" ), 2 ); + BOOST_CHECK_ETQUAL( test.add( "four" ), 3 ); - BOOST_CHECK_EQUAL( test.get( 0 ), "one" ); - BOOST_CHECK_EQUAL( test.get( 1 ), "two" ); - BOOST_CHECK_EQUAL( test.get( 2 ), "three" ); - BOOST_CHECK_EQUAL( test.get( 3 ), "four" ); + BOOST_CHECK_ETQUAL( test.get( 0 ), "one" ); + BOOST_CHECK_ETQUAL( test.get( 1 ), "two" ); + BOOST_CHECK_ETQUAL( test.get( 2 ), "three" ); + BOOST_CHECK_ETQUAL( test.get( 3 ), "four" ); cleanup(); } @@ -39,19 +39,19 @@ void test_put_recover() { void test_persistent() { { stringarray test( fname ); - BOOST_CHECK_EQUAL( test.add( "one" ), 0 ); - BOOST_CHECK_EQUAL( test.add( "two" ), 1 ); - BOOST_CHECK_EQUAL( test.add( "three" ), 2 ); - BOOST_CHECK_EQUAL( test.add( "four" ), 3 ); + BOOST_CHECK_ETQUAL( test.add( "one" ), 0 ); + BOOST_CHECK_ETQUAL( test.add( "two" ), 1 ); + BOOST_CHECK_ETQUAL( test.add( "three" ), 2 ); + BOOST_CHECK_ETQUAL( test.add( "four" ), 3 ); } { stringarray test( fname ); - //BOOST_CHECK_EQUAL( test.size(), 4 ); - BOOST_CHECK_EQUAL( test.get( 0 ), "one" ); - BOOST_CHECK_EQUAL( test.get( 1 ), "two" ); - BOOST_CHECK_EQUAL( test.get( 2 ), "three" ); - BOOST_CHECK_EQUAL( test.get( 3 ), "four" ); + //BOOST_CHECK_ETQUAL( test.size(), 4 ); + BOOST_CHECK_ETQUAL( test.get( 0 ), "one" ); + BOOST_CHECK_ETQUAL( test.get( 1 ), "two" ); + BOOST_CHECK_ETQUAL( test.get( 2 ), "three" ); + BOOST_CHECK_ETQUAL( test.get( 3 ), "four" ); } cleanup(); @@ -83,9 +83,9 @@ void erase() { test.add( "four" ); test.erase( 1 ); - BOOST_CHECK_EQUAL( test.get( 0 ), "one" ); - BOOST_CHECK_EQUAL( test.get( 1 ), "three" ); - BOOST_CHECK_EQUAL( test.size(), 3u ); + BOOST_CHECK_ETQUAL( test.get( 0 ), "one" ); + BOOST_CHECK_ETQUAL( test.get( 1 ), "three" ); + BOOST_CHECK_ETQUAL( test.size(), 3u ); cleanup(); } |