summaryrefslogtreecommitdiff
path: root/sc/qa/unit/bugfix-test.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit/bugfix-test.cxx')
-rw-r--r--sc/qa/unit/bugfix-test.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx
index c3506d615e3a..39bb792b56eb 100644
--- a/sc/qa/unit/bugfix-test.cxx
+++ b/sc/qa/unit/bugfix-test.cxx
@@ -79,9 +79,11 @@ public:
virtual void tearDown() SAL_OVERRIDE;
void testTdf64229();
+ void testTdf36933();
CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testTdf64229);
+ CPPUNIT_TEST(testTdf36933);
CPPUNIT_TEST_SUITE_END();
private:
uno::Reference<uno::XInterface> m_xCalcComponent;
@@ -105,6 +107,24 @@ void ScFiltersTest::testTdf64229()
xDocSh->DoClose();
}
+void ScFiltersTest::testTdf36933()
+{
+ ScDocShellRef xDocSh = loadDoc("fdo36933test.", ODS);
+
+ xDocSh->DoHardRecalc(true);
+
+ CPPUNIT_ASSERT_MESSAGE("Failed to load fdo36933test.*", xDocSh.Is());
+ ScDocument& rDoc = xDocSh->GetDocument();
+ OUString aCSVFileName;
+
+ //test hard recalc: document has an incorrect cached formula result
+ //hard recalc should have updated to the correct result
+ createCSVPath(OUString("fdo36933test."), aCSVFileName);
+ testFile(aCSVFileName, rDoc, 0);
+
+ xDocSh->DoClose();
+}
+
ScFiltersTest::ScFiltersTest()
: ScBootstrapFixture( "/sc/qa/unit/data" )