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 /writerperfect/qa/unit/WPXSvStreamTest.cxx | |
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 'writerperfect/qa/unit/WPXSvStreamTest.cxx')
-rw-r--r-- | writerperfect/qa/unit/WPXSvStreamTest.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/writerperfect/qa/unit/WPXSvStreamTest.cxx b/writerperfect/qa/unit/WPXSvStreamTest.cxx index 0899b4a64ad1..773458179145 100644 --- a/writerperfect/qa/unit/WPXSvStreamTest.cxx +++ b/writerperfect/qa/unit/WPXSvStreamTest.cxx @@ -200,7 +200,7 @@ void WPXSvStreamTest::testSeekSet() CPPUNIT_ASSERT(!pInput->isEnd()); CPPUNIT_ASSERT_EQUAL(0, pInput->seek(nLen, RVNG_SEEK_SET)); - CPPUNIT_ASSERT_EQUAL(pInput->tell(), nLen); + CPPUNIT_ASSERT_EQUAL(nLen, pInput->tell()); CPPUNIT_ASSERT(pInput->isEnd()); // go back to the beginning @@ -215,7 +215,7 @@ void WPXSvStreamTest::testSeekSet() CPPUNIT_ASSERT(!pInput->isEnd()); CPPUNIT_ASSERT(0 != pInput->seek(nLen + 1, RVNG_SEEK_SET)); - CPPUNIT_ASSERT_EQUAL(pInput->tell(), nLen); + CPPUNIT_ASSERT_EQUAL(nLen, pInput->tell()); CPPUNIT_ASSERT(pInput->isEnd()); } @@ -252,7 +252,7 @@ void WPXSvStreamTest::testSeekCur() CPPUNIT_ASSERT(!pInput->isEnd()); CPPUNIT_ASSERT(0 != pInput->seek(nLen + 1, RVNG_SEEK_CUR)); - CPPUNIT_ASSERT_EQUAL(pInput->tell(), nLen); + CPPUNIT_ASSERT_EQUAL(nLen, pInput->tell()); CPPUNIT_ASSERT(pInput->isEnd()); } @@ -267,11 +267,11 @@ void WPXSvStreamTest::testSeekEnd() // valid seeks CPPUNIT_ASSERT_EQUAL(0, pInput->seek(0, RVNG_SEEK_END)); - CPPUNIT_ASSERT_EQUAL(pInput->tell(), nLen); + CPPUNIT_ASSERT_EQUAL(nLen, pInput->tell()); CPPUNIT_ASSERT(pInput->isEnd()); CPPUNIT_ASSERT_EQUAL(0, pInput->seek(-1, RVNG_SEEK_END)); - CPPUNIT_ASSERT_EQUAL(pInput->tell(), (nLen - 1)); + CPPUNIT_ASSERT_EQUAL(nLen - 1, pInput->tell()); CPPUNIT_ASSERT(!pInput->isEnd()); CPPUNIT_ASSERT_EQUAL(0, pInput->seek(-nLen, RVNG_SEEK_END)); @@ -284,7 +284,7 @@ void WPXSvStreamTest::testSeekEnd() // invalid seeks CPPUNIT_ASSERT(0 != pInput->seek(1, RVNG_SEEK_END)); - CPPUNIT_ASSERT_EQUAL(pInput->tell(), nLen); + CPPUNIT_ASSERT_EQUAL(nLen, pInput->tell()); CPPUNIT_ASSERT(pInput->isEnd()); CPPUNIT_ASSERT(0 != pInput->seek(-nLen - 1, RVNG_SEEK_END)); |