summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/data/ods/tdf118624.odsbin0 -> 11783 bytes
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx15
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
new file mode 100644
index 000000000000..cdafe13668bd
--- /dev/null
+++ b/sc/qa/unit/data/ods/tdf118624.ods
Binary files differ
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);