[Libreoffice-commits] .: 2 commits - sc/qa

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Sat Oct 8 15:04:05 PDT 2011


 sc/qa/unit/data/contentCSV/mathematical-functions.csv |    4 ++++
 sc/qa/unit/data/contentCSV/spreadsheet-functions.csv  |    6 ++++--
 sc/qa/unit/data/ods/functions.ods                     |binary
 sc/qa/unit/filters-test.cxx                           |    3 +++
 4 files changed, 11 insertions(+), 2 deletions(-)

New commits:
commit bb549e2d50e548c2deda3af77ac444a4dde35700
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sat Oct 8 23:30:09 2011 +0200

    add unit test cases for mathematical functions

diff --git a/sc/qa/unit/data/contentCSV/mathematical-functions.csv b/sc/qa/unit/data/contentCSV/mathematical-functions.csv
new file mode 100644
index 0000000..106e570
--- /dev/null
+++ b/sc/qa/unit/data/contentCSV/mathematical-functions.csv
@@ -0,0 +1,4 @@
+0, 1, 10
+1.5707963268, 0, 3.1415926536
+0, Err:502
+1.5707963268, 2.3561944902, 0.7853981634
diff --git a/sc/qa/unit/data/ods/functions.ods b/sc/qa/unit/data/ods/functions.ods
index 10ddcea..4c09824 100644
Binary files a/sc/qa/unit/data/ods/functions.ods and b/sc/qa/unit/data/ods/functions.ods differ
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index 525a917..38eb940 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -394,6 +394,9 @@ void ScFiltersTest::testFunctions()
     //test spreadsheet functions
     createCSVPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("spreadsheet-functions.")), aCSVFileName);
     testFile(aCSVFileName, pDoc, 1);
+    //test mathematical functions
+    createCSVPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("mathematical-functions.")), aCSVFileName);
+    testFile(aCSVFileName, pDoc, 2, PureString);
 
     xDocSh->DoClose();
 }
commit c85b929b532c56c061df4fcfe32734d5db3bd5b8
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sat Oct 8 23:13:01 2011 +0200

    extend test for spreadsheet functions

diff --git a/sc/qa/unit/data/contentCSV/spreadsheet-functions.csv b/sc/qa/unit/data/contentCSV/spreadsheet-functions.csv
index 412ca58..da53433 100644
--- a/sc/qa/unit/data/contentCSV/spreadsheet-functions.csv
+++ b/sc/qa/unit/data/contentCSV/spreadsheet-functions.csv
@@ -1,2 +1,4 @@
-$C$2, $A$1
-1, 3, 4
+$C$2, $A$1, Sheet.B$2, Sheet!R2C2
+2, 4, 4, 5, 6, 15, 15, 6
+1, 3, 4, 4, 2, 2
+2, 4, 7, 8
diff --git a/sc/qa/unit/data/ods/functions.ods b/sc/qa/unit/data/ods/functions.ods
index 4b8c55a..10ddcea 100644
Binary files a/sc/qa/unit/data/ods/functions.ods and b/sc/qa/unit/data/ods/functions.ods differ


More information about the Libreoffice-commits mailing list