Kaydet (Commit) 740dac4d authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#77990: Write test for this, using the 2nd test document submitted.

Change-Id: I70d71bb21ff43aeb49339ff1f1d9e73c923e0201
üst 1899bd0c
......@@ -172,6 +172,7 @@ public:
void testSharedFormulaWrappedRefsXLS();
void testExternalRefCacheXLSX();
void testExternalRefCacheODS();
void testHybridSharedStringODS();
CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testBasicCellContentODS);
......@@ -248,6 +249,7 @@ public:
CPPUNIT_TEST(testSharedFormulaWrappedRefsXLS);
CPPUNIT_TEST(testExternalRefCacheXLSX);
CPPUNIT_TEST(testExternalRefCacheODS);
CPPUNIT_TEST(testHybridSharedStringODS);
CPPUNIT_TEST_SUITE_END();
private:
......@@ -2541,6 +2543,19 @@ void ScFiltersTest::testExternalRefCacheODS()
xDocSh->DoClose();
}
void ScFiltersTest::testHybridSharedStringODS()
{
ScDocShellRef xDocSh = loadDoc("hybrid-shared-string.", ODS);
CPPUNIT_ASSERT(xDocSh.Is());
ScDocument* pDoc = xDocSh->GetDocument();
// A2 contains formula with MATCH function. The result must be 2, not #N/A!
CPPUNIT_ASSERT_EQUAL(2.0, pDoc->GetValue(ScAddress(0,1,0)));
xDocSh->DoClose();
}
ScFiltersTest::ScFiltersTest()
: ScBootstrapFixture( "/sc/qa/unit/data" )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment