[Libreoffice-commits] core.git: sc/qa

kerem hallackerem at gmail.com
Tue Mar 28 20:52:22 UTC 2017


 sc/qa/unit/helper/shared_test_impl.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cc020cc261abc4866f3104b274705cbc86002898
Author: kerem <hallackerem at gmail.com>
Date:   Sat Mar 25 00:17:19 2017 +0200

    tdf#90290 use custom asserter in shared_test_impl.hxx
    
    Change-Id: I00bbd0fb3f63f5641fea75ce0cb797e5f2252fa2
    Reviewed-on: https://gerrit.libreoffice.org/35669
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

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));


More information about the Libreoffice-commits mailing list