[Libreoffice-commits] core.git: sc/qa
kerem
hallackerem at gmail.com
Tue Mar 28 20:47:11 UTC 2017
sc/qa/unit/ucalc_sharedformula.cxx | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
New commits:
commit 837bf336cbcc7ddb4b07146cc7f654d5ea013cb1
Author: kerem <hallackerem at gmail.com>
Date: Mon Mar 27 00:41:43 2017 +0300
tdf#90290 use custom asserter in ucalc_sharedformula.cxx
Change-Id: Ica0e0aed177c47e402e573d53df54ab6ea4ad15d
Reviewed-on: https://gerrit.libreoffice.org/35727
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
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.
More information about the Libreoffice-commits
mailing list