summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkerem <hallackerem@gmail.com>2017-03-25 00:17:19 +0200
committerMichael Stahl <mstahl@redhat.com>2017-03-28 20:52:01 +0000
commitcc020cc261abc4866f3104b274705cbc86002898 (patch)
treee6d470482a8f118388a43c9a0d4c17309114724b
parent1a2e07d52cccc4f4d3019939451f9187a776f244 (diff)
tdf#90290 use custom asserter in shared_test_impl.hxx
Change-Id: I00bbd0fb3f63f5641fea75ce0cb797e5f2252fa2 Reviewed-on: https://gerrit.libreoffice.org/35669 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--sc/qa/unit/helper/shared_test_impl.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/helper/shared_test_impl.hxx b/sc/qa/unit/helper/shared_test_impl.hxx
index b1a850cc4c5f..f24eaad29f0d 100644
--- a/sc/qa/unit/helper/shared_test_impl.hxx
+++ b/sc/qa/unit/helper/shared_test_impl.hxx
@@ -14,6 +14,7 @@
#include "conditio.hxx"
#include "document.hxx"
#include "formulacell.hxx"
+#include "qahelper.hxx"
#include <formula/errorcodes.hxx>
struct FindCondFormatByEnclosingRange
@@ -280,8 +281,7 @@ void testCeilingFloor_Impl( ScDocument& rDoc )
OUString aRef(pORef);
ScAddress aPos;
aPos.Parse(aRef);
- if (!checkFormula( rDoc, aPos, "AND(K3:K81)"))
- CPPUNIT_FAIL("Wrong formula.");
+ ASSERT_FORMULA_EQUAL(rDoc, aPos, "AND(K3:K81)", "Wrong formula.");
CPPUNIT_ASSERT_MESSAGE( OString( OString(pORef) + " result is error.").getStr(),
isFormulaWithoutError( rDoc, aPos));
CPPUNIT_ASSERT_EQUAL(1.0, rDoc.GetValue(aPos));