[Libreoffice-commits] core.git: 2 commits - sc/qa
Markus Mohrhard
markus.mohrhard at collabora.co.uk
Sun May 11 20:55:22 PDT 2014
sc/qa/unit/data/contentCSV/date-time-functions.csv | 29 +++++++++++++++++++++
sc/qa/unit/data/ods/date-time-functions.ods |binary
sc/qa/unit/subsequent_filters-test.cxx | 9 ++++++
3 files changed, 38 insertions(+)
New commits:
commit 28c9d9898064af9269526064cdb90b6c3427c72a
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date: Mon May 12 05:50:56 2014 +0200
integrate the date time tests
Change-Id: Ie1660042abf6b5512c8bcaba067181826ca61df8
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 2b4d689..ef0428d 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -429,6 +429,15 @@ void ScFiltersTest::testFunctionsODS()
createCSVPath("database-functions.", aCSVFileName);
testFile(aCSVFileName, pDoc, 0);
+
+ xDocSh->DoClose();
+
+ xDocSh = loadDoc("date-time-functions.", ODS);
+ CPPUNIT_ASSERT_MESSAGE("Failed to load functions.*", xDocSh.Is());
+ xDocSh->DoHardRecalc(true);
+ pDoc = xDocSh->GetDocument();
+ createCSVPath("date-time-functions.", aCSVFileName);
+ testFile(aCSVFileName, pDoc, 0, PureString);
}
void ScFiltersTest::testFunctionsExcel2010()
commit adb497a0d2261f3b1233ffd25c6cade996072567
Author: Ken Biondi <kenbiondi at hotmail.com>
Date: Mon May 12 05:50:38 2014 +0200
add tests for date time functions
Change-Id: I875f6faca6c6361c581ca751be8d89ab7392c938
diff --git a/sc/qa/unit/data/contentCSV/date-time-functions.csv b/sc/qa/unit/data/contentCSV/date-time-functions.csv
new file mode 100644
index 0000000..a43bdc3
--- /dev/null
+++ b/sc/qa/unit/data/contentCSV/date-time-functions.csv
@@ -0,0 +1,29 @@
+30347
+38,1,27,457,13937,57
+19925
+30,31,1,21
+3652
+5150
+30,28,29
+366,365
+41749
+36890
+37346
+17
+1,0
+58,59,45
+4
+2,3
+17
+15
+.18
+0,0.6666666667,0.5
+4,3,4
+1,52
+52
+10,11
+52,52
+37253
+1899,1900,1991
+0.5,0.4972677596,0.5055555556,0.498630137,0.5
+1,2
diff --git a/sc/qa/unit/data/ods/date-time-functions.ods b/sc/qa/unit/data/ods/date-time-functions.ods
new file mode 100644
index 0000000..9f6e044
Binary files /dev/null and b/sc/qa/unit/data/ods/date-time-functions.ods differ
More information about the Libreoffice-commits
mailing list