diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-31 13:20:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-01 09:14:25 +0200 |
commit | 23b08449736ba825a9c582ba18b7a5fdba178e47 (patch) | |
tree | 8513c824f1964f84f957a41658f6d173a008c469 /svtools | |
parent | 8e63d451b2aeb646ece98c4e219f92957f4482bd (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/qa/unit/testHtmlWriter.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/qa/unit/testHtmlWriter.cxx b/svtools/qa/unit/testHtmlWriter.cxx index 18cb409ff37b..2edf9665b607 100644 --- a/svtools/qa/unit/testHtmlWriter.cxx +++ b/svtools/qa/unit/testHtmlWriter.cxx @@ -67,7 +67,7 @@ void Test::testSingleElement() aHtml.end(); OString aString = extractFromStream(aStream); - CPPUNIT_ASSERT_EQUAL(aString, OString("<abc/>")); + CPPUNIT_ASSERT_EQUAL(OString("<abc/>"), aString); } { @@ -79,7 +79,7 @@ void Test::testSingleElement() OString aString = extractFromStream(aStream); - CPPUNIT_ASSERT_EQUAL(aString, OString("<abc/>")); + CPPUNIT_ASSERT_EQUAL(OString("<abc/>"), aString); } } @@ -96,7 +96,7 @@ void Test::testSingleElementWithAttributes() OString aString = extractFromStream(aStream); - CPPUNIT_ASSERT_EQUAL(aString, OString("<abc x=\"y\"/>")); + CPPUNIT_ASSERT_EQUAL(OString("<abc x=\"y\"/>"), aString); } { @@ -111,7 +111,7 @@ void Test::testSingleElementWithAttributes() OString aString = extractFromStream(aStream); - CPPUNIT_ASSERT_EQUAL(aString, OString("<abc x=\"y\" q=\"w\"/>")); + CPPUNIT_ASSERT_EQUAL(OString("<abc x=\"y\" q=\"w\"/>"), aString); } } @@ -126,7 +126,7 @@ void Test::testSingleElementWithContent() OString aString = extractFromStream(aStream); - CPPUNIT_ASSERT_EQUAL(aString, OString("<abc/>")); + CPPUNIT_ASSERT_EQUAL(OString("<abc/>"), aString); } void Test::testSingleElementWithContentAndAttributes() @@ -142,7 +142,7 @@ void Test::testSingleElementWithContentAndAttributes() OString aString = extractFromStream(aStream); - CPPUNIT_ASSERT_EQUAL(aString, OString("<abc x=\"y\" q=\"w\"/>")); + CPPUNIT_ASSERT_EQUAL(OString("<abc x=\"y\" q=\"w\"/>"), aString); } void Test::testNested() |