fdo#76294: Write import test for this.
Change-Id: I4d2f98117b783e801916f99fd99e69d43e161e2d
This commit is contained in:
BIN
sc/qa/unit/data/xls/shared-string/literal-in-formula.xls
Normal file
BIN
sc/qa/unit/data/xls/shared-string/literal-in-formula.xls
Normal file
Binary file not shown.
@@ -124,6 +124,8 @@ public:
|
||||
void testNewCondFormatODS();
|
||||
void testNewCondFormatXLSX();
|
||||
|
||||
void testLiteralInFormulaXLS();
|
||||
|
||||
//change this test file only in excel and not in calc
|
||||
void testCellValueXLSX();
|
||||
|
||||
@@ -211,6 +213,7 @@ public:
|
||||
CPPUNIT_TEST(testColorScaleXLSX);
|
||||
CPPUNIT_TEST(testNewCondFormatODS);
|
||||
CPPUNIT_TEST(testNewCondFormatXLSX);
|
||||
CPPUNIT_TEST(testLiteralInFormulaXLS);
|
||||
|
||||
CPPUNIT_TEST(testNumberFormatHTML);
|
||||
CPPUNIT_TEST(testNumberFormatCSV);
|
||||
@@ -2347,6 +2350,19 @@ void ScFiltersTest::testNewCondFormatXLSX()
|
||||
xDocSh->DoClose();
|
||||
}
|
||||
|
||||
void ScFiltersTest::testLiteralInFormulaXLS()
|
||||
{
|
||||
ScDocShellRef xDocSh = loadDoc("shared-string/literal-in-formula.", XLS);
|
||||
CPPUNIT_ASSERT(xDocSh.Is());
|
||||
|
||||
ScDocument* pDoc = xDocSh->GetDocument();
|
||||
pDoc->CalcAll();
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(2.0, pDoc->GetValue(ScAddress(0,0,0)));
|
||||
|
||||
xDocSh->DoClose();
|
||||
}
|
||||
|
||||
void ScFiltersTest::testFormulaDependency()
|
||||
{
|
||||
ScDocShellRef xDocSh = ScBootstrapFixture::loadDoc( "dependencyTree.", ODS );
|
||||
|
Reference in New Issue
Block a user