summaryrefslogtreecommitdiff
path: root/sw/qa/core/text/text.cxx
diff options
context:
space:
mode:
authorVojtěch Doležal <dolezvo1@cvut.cz>2023-04-04 17:15:20 +0200
committerMiklos Vajna <vmiklos@collabora.com>2023-04-12 09:18:13 +0200
commitb8cc40c906d4838b028e332e9dabbacba7f7c033 (patch)
treeabc7236874b45facd6635a3563b34c2e8e811413 /sw/qa/core/text/text.cxx
parente0e33aa622968bc2e182099670a024a1d00b8e5c (diff)
Replaced ...ASSERT with ...ASSERT_GREATER in vwNBSP tests
Change-Id: I3d1584de37873ead53d317b033f3611974183c28 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150025 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/qa/core/text/text.cxx')
-rw-r--r--sw/qa/core/text/text.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/qa/core/text/text.cxx b/sw/qa/core/text/text.cxx
index d08ff598dd4c..b233d2ecf499 100644
--- a/sw/qa/core/text/text.cxx
+++ b/sw/qa/core/text/text.cxx
@@ -1239,7 +1239,7 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testTdf41652NBSPWidth)
}
// Assert left aligned NBSP for the legacy file is larger than zero
- CPPUNIT_ASSERT(nSectionAfterNBSPX_legacy_leftAligned > 0);
+ CPPUNIT_ASSERT_GREATER(sal_Int32(0), nSectionAfterNBSPX_legacy_leftAligned);
// Assert both NBSPs have same width for the legacy file
CPPUNIT_ASSERT_EQUAL(nSectionAfterNBSPX_legacy_leftAligned,
nSectionAfterNBSPX_legacy_justified);
@@ -1253,8 +1253,8 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testTdf41652NBSPWidth)
CPPUNIT_ASSERT_EQUAL(nSectionAfterNBSPX_optionDisabled_leftAligned,
nSectionAfterNBSPX_optionEnabled_leftAligned);
// Assert justified NBSP is wider for the enabled file
- CPPUNIT_ASSERT(nSectionAfterNBSPX_optionDisabled_justified
- < nSectionAfterNBSPX_optionEnabled_justified);
+ CPPUNIT_ASSERT_GREATER(nSectionAfterNBSPX_optionDisabled_justified,
+ nSectionAfterNBSPX_optionEnabled_justified);
}
CPPUNIT_PLUGIN_IMPLEMENT();