From 62983d5ae66d510c3a6a3167eb41207a9d2777ec Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 26 Mar 2012 18:06:51 +0200 Subject: CPPUNIT_ASSERT( == ) -> CPPUNIT_ASSERT_EQUAL() --- sal/qa/rtl/strings/test_oustring_stringliterals.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sal') 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 -- cgit