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 /i18npool | |
parent | Move signature line to signed properties (diff) | |
download | core-23b08449736ba825a9c582ba18b7a5fdba178e47.tar.gz core-23b08449736ba825a9c582ba18b7a5fdba178e47.zip |
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 'i18npool')
-rw-r--r-- | i18npool/qa/cppunit/test_characterclassification.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/qa/cppunit/test_characterclassification.cxx b/i18npool/qa/cppunit/test_characterclassification.cxx index 70c902f71aaa..1fa1f3971ab4 100644 --- a/i18npool/qa/cppunit/test_characterclassification.cxx +++ b/i18npool/qa/cppunit/test_characterclassification.cxx @@ -80,7 +80,7 @@ void TestCharacterClassification::testStringType() //simple case OUString sTest("Some text"); sal_Int32 nResult = m_xCC->getStringType(sTest, 0, sTest.getLength(), aLocale); - CPPUNIT_ASSERT_EQUAL(nResult, sal_Int32(230)); + CPPUNIT_ASSERT_EQUAL(sal_Int32(230), nResult); } { @@ -88,7 +88,7 @@ void TestCharacterClassification::testStringType() const sal_Unicode MATHEMATICAL_ITALIC_SMALL_THETA[] = { 0xD835, 0xDF03 }; OUString sTest(MATHEMATICAL_ITALIC_SMALL_THETA, SAL_N_ELEMENTS(MATHEMATICAL_ITALIC_SMALL_THETA)); sal_Int32 nResult = m_xCC->getStringType(sTest, 0, sTest.getLength(), aLocale); - CPPUNIT_ASSERT_EQUAL(nResult, sal_Int32(228)); + CPPUNIT_ASSERT_EQUAL(sal_Int32(228), nResult); } } |