diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-26 19:06:07 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-26 20:14:48 +0200 |
commit | ec0554c5eabce108f6fb5b6a44e3e16425a1d650 (patch) | |
tree | dfb17afc8a872f4d2fa79e6a496a741220e1e285 /sc | |
parent | 20479772e949f09a8f46e00f90e6a496b43a8b90 (diff) |
tdf#118624: sc: Add unittest
Change-Id: I377d64258d1bd93af99284eb7b74e16d7924effd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97260
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/data/ods/tdf118624.ods | bin | 0 -> 11783 bytes | |||
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sc/qa/unit/data/ods/tdf118624.ods b/sc/qa/unit/data/ods/tdf118624.ods Binary files differnew file mode 100644 index 000000000000..cdafe13668bd --- /dev/null +++ b/sc/qa/unit/data/ods/tdf118624.ods diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index 09d2890891f6..c9e895444f91 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -194,6 +194,7 @@ public: void testOptimalHeightReset(); void testCustomNumFormatHybridCellODS(); void testTdf121040(); + void testTdf118624(); void testPrintRangeODS(); void testOutlineODS(); @@ -349,6 +350,7 @@ public: CPPUNIT_TEST(testOptimalHeightReset); CPPUNIT_TEST(testCustomNumFormatHybridCellODS); CPPUNIT_TEST(testTdf121040); + CPPUNIT_TEST(testTdf118624); CPPUNIT_TEST(testPrintRangeODS); CPPUNIT_TEST(testOutlineODS); CPPUNIT_TEST(testColumnStyleXLSX); @@ -2925,6 +2927,19 @@ void ScFiltersTest::testTdf121040() xDocSh->DoClose(); } +void ScFiltersTest::testTdf118624() +{ + ScDocShellRef xDocSh = loadDoc("tdf118624.", FORMAT_ODS); + CPPUNIT_ASSERT_MESSAGE("Failed to open doc", xDocSh.is()); + + ScDocument& rDoc = xDocSh->GetDocument(); + + CPPUNIT_ASSERT_MESSAGE("RAND() in array/matrix mode shouldn't return the same value", + rDoc.GetString(ScAddress(0,0,0)) != rDoc.GetString(ScAddress(0,1,0))); + + xDocSh->DoClose(); +} + void ScFiltersTest::testPrintRangeODS() { ScDocShellRef xDocSh = loadDoc("print-range.", FORMAT_ODS); |