From 837bf336cbcc7ddb4b07146cc7f654d5ea013cb1 Mon Sep 17 00:00:00 2001 From: kerem Date: Mon, 27 Mar 2017 00:41:43 +0300 Subject: tdf#90290 use custom asserter in ucalc_sharedformula.cxx Change-Id: Ica0e0aed177c47e402e573d53df54ab6ea4ad15d Reviewed-on: https://gerrit.libreoffice.org/35727 Tested-by: Jenkins Reviewed-by: Michael Stahl --- sc/qa/unit/ucalc_sharedformula.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'sc') 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. -- cgit v1.2.3