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

Łukasz Hryniuk lukasz.hryniuk at wp.pl
Tue Aug 25 18:43:23 PDT 2015


 sc/qa/unit/ucalc_formula.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 8580f4428dbe368acea5d4adfea2cb7b399dfae4
Author: Łukasz Hryniuk <lukasz.hryniuk at wp.pl>
Date:   Thu Aug 13 23:52:25 2015 +0200

    tdf#89387 add some strings to FTEST test
    
    Strings should be omitted by the algorithm, so such test cases are
    important (were missed before).
    
    Change-Id: I2e77b2087e398bf27ac71ba4da0b26c66cc08311
    Reviewed-on: https://gerrit.libreoffice.org/18001
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-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 3d60fdf..52ccb9a 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -5573,6 +5573,17 @@ void Test::testFuncFTEST()
     m_pDoc->SetValue(2, 2, 0, 13.0); // C3
     CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("Calculation of FTEST failed", 0.0422, m_pDoc->GetValue(aPos), 10e-4);
 
+    m_pDoc->SetString(0, 2, 0, "a"); // A3
+    CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("Calculation of FTEST failed", 0.0334, m_pDoc->GetValue(aPos), 10e-4);
+    m_pDoc->SetString(2, 0, 0, "b"); // C1
+    CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("Calculation of FTEST failed", 0.0261, m_pDoc->GetValue(aPos), 10e-4);
+    m_pDoc->SetString(5, 1, 0, "c"); // F2
+    CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("Calculation of FTEST failed", 0.0219, m_pDoc->GetValue(aPos), 10e-4);
+    m_pDoc->SetString(4, 2, 0, "d"); // E3
+    CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("Calculation of FTEST failed", 0.0161, m_pDoc->GetValue(aPos), 10e-4);
+    m_pDoc->SetString(3, 2, 0, "e"); // D3
+    CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("Calculation of FTEST failed", 0.0110, m_pDoc->GetValue(aPos), 10e-4);
+
     m_pDoc->DeleteTab(0);
 }
 


More information about the Libreoffice-commits mailing list