summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-10-08 23:30:09 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-10-09 00:04:30 +0200
commitbb549e2d50e548c2deda3af77ac444a4dde35700 (patch)
treec2641b32105d46464a4192ee986faae0e70e9da8 /sc
parentc85b929b532c56c061df4fcfe32734d5db3bd5b8 (diff)
add unit test cases for mathematical functions
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/data/contentCSV/mathematical-functions.csv4
-rw-r--r--sc/qa/unit/data/ods/functions.odsbin9523 -> 9761 bytes
-rw-r--r--sc/qa/unit/filters-test.cxx3
3 files changed, 7 insertions, 0 deletions
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 000000000000..106e5705bad6
--- /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 10ddceac5330..4c098247f0ee 100644
--- a/sc/qa/unit/data/ods/functions.ods
+++ b/sc/qa/unit/data/ods/functions.ods
Binary files differ
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index 525a917634eb..38eb9401a63d 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();
}