From 23b08449736ba825a9c582ba18b7a5fdba178e47 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 31 May 2018 13:20:41 +0200 Subject: loplugin: look for CPPUNIT_ASSERT_EQUALS with params swapped idea originally from either tml or moggi, can't remember which Change-Id: Id78d75035036d3aa1666e33469c6eeb38f9e624d Reviewed-on: https://gerrit.libreoffice.org/55126 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sax/qa/cppunit/attributes.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sax') diff --git a/sax/qa/cppunit/attributes.cxx b/sax/qa/cppunit/attributes.cxx index 244da02eb535..c0ffdd7178ab 100644 --- a/sax/qa/cppunit/attributes.cxx +++ b/sax/qa/cppunit/attributes.cxx @@ -46,10 +46,10 @@ void AttributesTest::test() CPPUNIT_ASSERT( xAttributeList->hasAttribute(1) ); CPPUNIT_ASSERT( !xAttributeList->hasAttribute(3) ); - CPPUNIT_ASSERT_EQUAL( xAttributeList->getOptionalValue(2), OUString("2") ); - CPPUNIT_ASSERT_EQUAL( xAttributeList->getOptionalValue(3), OUString() ); + CPPUNIT_ASSERT_EQUAL( OUString("2"), xAttributeList->getOptionalValue(2) ); + CPPUNIT_ASSERT_EQUAL( OUString(), xAttributeList->getOptionalValue(3) ); - CPPUNIT_ASSERT_EQUAL( xAttributeList->getValue(1), OUString("1") ); + CPPUNIT_ASSERT_EQUAL( OUString("1"), xAttributeList->getValue(1) ); CPPUNIT_ASSERT_THROW( xAttributeList->getValue(3), xml::sax::SAXException ); xAttributeList->addUnknown("a", "a"); -- cgit