summaryrefslogtreecommitdiff
path: root/sal/qa
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-03-26 18:06:51 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-03-26 18:57:04 +0200
commit62983d5ae66d510c3a6a3167eb41207a9d2777ec (patch)
treeb3f49f1a19b34c16d87d46c2280b5bcdd3948282 /sal/qa
parent92fec304fb2820b5719080c0889c7432f819af17 (diff)
CPPUNIT_ASSERT( == ) -> CPPUNIT_ASSERT_EQUAL()
Diffstat (limited to 'sal/qa')
-rw-r--r--sal/qa/rtl/strings/test_oustring_stringliterals.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
index 9c8c934282eb..c90fe5e70a6d 100644
--- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
+++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
@@ -91,10 +91,10 @@ void test::oustring::StringLiterals::checkCtors()
// Check that contents are correct and equal to the case when RTL_CONSTASCII_USTRINGPARAM is used.
// Also check that embedded \0 is included.
- CPPUNIT_ASSERT( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "" )) == rtl::OUString( "" ));
- CPPUNIT_ASSERT( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "\0" )) == rtl::OUString( "\0" ));
- CPPUNIT_ASSERT( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ab" )) == rtl::OUString( "ab" ));
- CPPUNIT_ASSERT( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "a\0b" )) == rtl::OUString( "a\0b" ));
+ CPPUNIT_ASSERT_EQUAL( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "" )), rtl::OUString( "" ));
+ CPPUNIT_ASSERT_EQUAL( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "\0" )), rtl::OUString( "\0" ));
+ CPPUNIT_ASSERT_EQUAL( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ab" )), rtl::OUString( "ab" ));
+ CPPUNIT_ASSERT_EQUAL( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "a\0b" )), rtl::OUString( "a\0b" ));
}
void test::oustring::StringLiterals::testcall( const char str[] )
@@ -167,9 +167,9 @@ void test::oustring::StringLiterals::checkBuffer()
{
rtl::OUStringBuffer buf;
buf.append( "foo" );
- CPPUNIT_ASSERT( buf.toString() == "foo" );
+ CPPUNIT_ASSERT_EQUAL( buf.toString(), rtl::OUString( "foo" ));
buf.append( "bar" );
- CPPUNIT_ASSERT( buf.toString() == "foobar" );
+ CPPUNIT_ASSERT_EQUAL( buf.toString(), rtl::OUString( "foobar" ));
}
}} // namespace