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

Tor Lillqvist tml at collabora.com
Thu Sep 28 11:19:49 UTC 2017


 dev/null                   |binary
 sc/qa/unit/opencl-test.cxx |   25 -------------------------
 2 files changed, 25 deletions(-)

New commits:
commit d2cf510af2ab8a03e343b03773f0cfcc1c71cd22
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Sep 28 12:40:45 2017 +0300

    The OpenCL XIRR test fails randomly on some machines so bin it
    
    We don't even use OpenCL for XIRR normally anyway.
    
    Change-Id: I4bd76e9c5a0ad2222bef47d801f956fda1da568c

diff --git a/sc/qa/unit/data/ods/opencl/financial/XIRR.ods b/sc/qa/unit/data/ods/opencl/financial/XIRR.ods
deleted file mode 100644
index a9d2476d1066..000000000000
Binary files a/sc/qa/unit/data/ods/opencl/financial/XIRR.ods and /dev/null differ
diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx
index 83ed36b81010..a17f1a4e84b9 100644
--- a/sc/qa/unit/opencl-test.cxx
+++ b/sc/qa/unit/opencl-test.cxx
@@ -141,7 +141,6 @@ public:
     void testMathFormulaArcCos();
     void testMathFormulaSqrt();
     void testMathFormulaArcCosHyp();
-    void testFinancialXirrFormula();
     void testFinacialNPVFormula();
     void testStatisticalFormulaNormsdist();
     void testStatisticalFormulaNorminv();
@@ -370,7 +369,6 @@ public:
     CPPUNIT_TEST(testMathFormulaArcCos);
     CPPUNIT_TEST(testMathFormulaSqrt);
     CPPUNIT_TEST(testMathFormulaArcCosHyp);
-    CPPUNIT_TEST(testFinancialXirrFormula);
     CPPUNIT_TEST(testFinacialNPVFormula);
     CPPUNIT_TEST(testStatisticalFormulaNormsdist);
     CPPUNIT_TEST(testStatisticalFormulaNorminv);
@@ -2744,29 +2742,6 @@ void ScOpenCLTest:: testFinancialIPMTFormula()
     }
 }
 
-void ScOpenCLTest:: testFinancialXirrFormula()
-{
-    if(!initTestEnv("opencl/financial/XIRR.", FORMAT_ODS, false))
-        return;
-    ScDocument& rDoc = xDocSh->GetDocument();
-    rDoc.CalcAll();
-
-    for (SCROW i = 1; i <= 10; ++i)
-    {
-        double fFormula  = rDoc.GetValue(ScAddress(2, i, 0));
-        double fExpected = rDoc.GetValue(ScAddress(3, i, 0));
-        CPPUNIT_ASSERT(rtl::math::approxEqual(fExpected, fFormula));
-    }
-    for (SCROW i = 18; i <= 27; ++i)
-    {
-        double fFormula = rDoc.GetValue(ScAddress(2, i, 0));
-        double fExpected = rDoc.GetValue(ScAddress(3, i, 0));
-        CPPUNIT_ASSERT(rtl::math::approxEqual(fExpected, fFormula));
-    }
-
-
-}
-
 void ScOpenCLTest::testStatisticalFormulaChiSqDist()
 {
     if(!initTestEnv("opencl/statistical/CHISQDIST.", FORMAT_ODS, false))


More information about the Libreoffice-commits mailing list