From 940b4d1848e8c70ab7642901a68594e8016caffc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 18:51:28 +0200 Subject: Adding upstream version 1:7.0.4. Signed-off-by: Daniel Baumann --- sc/qa/unit/functions_datetime.cxx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sc/qa/unit/functions_datetime.cxx (limited to 'sc/qa/unit/functions_datetime.cxx') diff --git a/sc/qa/unit/functions_datetime.cxx b/sc/qa/unit/functions_datetime.cxx new file mode 100644 index 000000000..3e99272c9 --- /dev/null +++ b/sc/qa/unit/functions_datetime.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class DateTimeFunctionsTest : public FunctionsTest +{ +public: + DateTimeFunctionsTest(); + + void testDateTimeFormulasFODS(); + + CPPUNIT_TEST_SUITE(DateTimeFunctionsTest); + CPPUNIT_TEST(testDateTimeFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void DateTimeFunctionsTest::testDateTimeFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/date_time/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +DateTimeFunctionsTest::DateTimeFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/date_time/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(DateTimeFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3