loplugin:cppunitassertequals: basic

Change-Id: Icaa3e0eace6ccff365d4ebdb007771fc8a78671a
This commit is contained in:
Stephan Bergmann
2017-04-28 14:21:30 +02:00
parent 6414f7e533
commit 38f70cd770

View File

@@ -208,7 +208,7 @@ void VBATest::testMiscOLEStuff()
fprintf(stderr, "macro returned:\n%s\n", OUStringToOString( pReturn->GetOUString(), RTL_TEXTENCODING_UTF8 ).getStr() );
}
CPPUNIT_ASSERT_MESSAGE("No return variable huh?", pReturn.get() != nullptr );
CPPUNIT_ASSERT_MESSAGE("Result not as expected", pReturn->GetOUString() == "OK" );
CPPUNIT_ASSERT_EQUAL_MESSAGE("Result not as expected", OUString("OK"), pReturn->GetOUString() );
}
#else
// Avoid "this method is empty and should be removed" warning