sw/qa/core/text/text.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit b8cc40c906d4838b028e332e9dabbacba7f7c033
Author:     Vojtěch Doležal <dolez...@cvut.cz>
AuthorDate: Tue Apr 4 17:15:20 2023 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed Apr 12 09:18:13 2023 +0200

    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 <vmik...@collabora.com>

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();

Reply via email to