diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-09-20 18:03:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-09-20 23:04:17 +0200 |
commit | de4dfa06c9b353e3c34dfea14b38325a87f6ec8a (patch) | |
tree | 227840a7dd290fe151ddd751a3e17f6ce7dbc02e /sw | |
parent | e2cca4cc34cf34d4a109905f81924bea4ea84418 (diff) |
Use CPPUNIT_ASSERT_GREATER(e,a) instead of CPPUNIT_ASSERT(e<a)
Change-Id: Ib7f74d1afdf038726842d7fc0b33555db6611270
Reviewed-on: https://gerrit.libreoffice.org/79310
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index b4665cd17b3d..10e9ee644983 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -5052,12 +5052,12 @@ void SwUiWriterTest::testTdf98987() sal_Int32 nRectangle1 = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[2]/bounds", "top").toInt32(); assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/SdrObject", "name", "Rectangle 2"); sal_Int32 nRectangle2 = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/bounds", "top").toInt32(); - CPPUNIT_ASSERT(nRectangle1 < nRectangle2); + CPPUNIT_ASSERT_GREATER(nRectangle1, nRectangle2); assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[3]/SdrObject", "name", "Rectangle 3"); sal_Int32 nRectangle3 = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[3]/bounds", "top").toInt32(); // This failed: the 3rd rectangle had a smaller "top" value than the 2nd one, it even overlapped with the 1st one. - CPPUNIT_ASSERT(nRectangle2 < nRectangle3); + CPPUNIT_ASSERT_GREATER(nRectangle2, nRectangle3); } void SwUiWriterTest::testTdf99004() |