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

Markus Mohrhard markus.mohrhard at googlemail.com
Thu Feb 18 07:48:21 UTC 2016


 sc/qa/unit/ucalc_formula.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit de669d714fa6f7d33d6df6e323c72710f470f77c
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Wed Feb 17 20:24:07 2016 +0100

    use better asserter macro
    
    Change-Id: I144545f5376acbab164e05aecd8937d336e50e9b
    Reviewed-on: https://gerrit.libreoffice.org/22455
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index e3863bc..d66233b 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -5569,7 +5569,7 @@ void Test::testExternalRefFunctions()
     {
         m_pDoc->SetString(0, 0, 0, OUString::createFromAscii(aChecks[i].pFormula));
         m_pDoc->GetValue(0, 0, 0, val);
-        CPPUNIT_ASSERT_MESSAGE("unexpected result involving external ranges.", val == aChecks[i].fResult);
+        CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("unexpected result involving external ranges.", aChecks[i].fResult, val, 1e-15);
     }
 
     pRefMgr->clearCache(nFileId);


More information about the Libreoffice-commits mailing list