summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorkerem <hallackerem@gmail.com>2017-03-27 00:41:43 +0300
committerMichael Stahl <mstahl@redhat.com>2017-03-28 20:46:50 +0000
commit837bf336cbcc7ddb4b07146cc7f654d5ea013cb1 (patch)
tree9869656b8444e352a04bb489d2234199290e676c /sc
parentfd3449946492e80811e4a51231cf1061c607d8b7 (diff)
tdf#90290 use custom asserter in ucalc_sharedformula.cxx
Change-Id: Ica0e0aed177c47e402e573d53df54ab6ea4ad15d Reviewed-on: https://gerrit.libreoffice.org/35727 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/ucalc_sharedformula.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx
index 89025ef5607e..ecd253d86b66 100644
--- a/sc/qa/unit/ucalc_sharedformula.cxx
+++ b/sc/qa/unit/ucalc_sharedformula.cxx
@@ -794,11 +794,7 @@ void Test::testSharedFormulasInsertRow()
for (size_t i = 0, n = SAL_N_ELEMENTS(pRows); i < n; ++i)
{
ScAddress aPos(1, pRows[i], 0);
- if (!checkFormula(*pDoc, aPos, "$A$5"))
- {
- cerr << "Wrong formula!" << endl;
- return false;
- }
+ ASSERT_FORMULA_EQUAL(*pDoc, aPos, "$A$5", "Wrong formula!");
}
// B1:B2 should be grouped.
@@ -825,11 +821,7 @@ void Test::testSharedFormulasInsertRow()
for (SCROW i = 0; i <= 3; ++i)
{
ScAddress aPos(1,i,0);
- if (!checkFormula(*pDoc, aPos, "$A$4"))
- {
- cerr << "Wrong formula!" << endl;
- return false;
- }
+ ASSERT_FORMULA_EQUAL(*pDoc, aPos, "$A$4", "Wrong formula!");
}
// Ensure that B5 is empty.