summaryrefslogtreecommitdiffstats
path: root/indexlib/tests/stringarray-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indexlib/tests/stringarray-test.cpp')
-rw-r--r--indexlib/tests/stringarray-test.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/indexlib/tests/stringarray-test.cpp b/indexlib/tests/stringarray-test.cpp
index d0f5ecefa..110b82c9a 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();
}