sc/qa/unit/ucalc_sharedformula.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
New commits: commit 837bf336cbcc7ddb4b07146cc7f654d5ea013cb1 Author: kerem <hallacke...@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 <c...@libreoffice.org> Reviewed-by: Michael Stahl <mst...@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. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits