Kaydet (Commit) 2da75cea authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#76294: Write import test for this.

Change-Id: I4d2f98117b783e801916f99fd99e69d43e161e2d
üst 981590d1
......@@ -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 );
......
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