summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-30 00:40:36 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-30 23:50:01 -0400
commited671a33a31b8d8cd81e3774be603c13e8b9a6f3 (patch)
tree3d582159a4b52ae32a8ed0169b711b25a9ecf4bc /sc/qa
parente663dfee253fcd02d6d76c3d8934299a495a7f88 (diff)
A little more test.
Change-Id: I4c5590609122602e5828bbc3ba52ed9a565f0aac
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/ucalc_formula.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 1dba4538b687..ac9257df8760 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -1051,14 +1051,17 @@ void Test::testFormulaRefUpdateNamedExpression()
// Insert a new sheet before the current.
m_pDoc->InsertTab(0, "New");
- m_pDoc->CalcAll();
OUString aName;
m_pDoc->GetName(1, aName);
CPPUNIT_ASSERT_EQUAL(OUString("Formula"), aName);
- CPPUNIT_ASSERT_EQUAL(43.0, m_pDoc->GetValue(ScAddress(2,7,1)));
+ m_pDoc->SetValue(ScAddress(3,9,1), 10);
+ CPPUNIT_ASSERT_EQUAL(33.0, m_pDoc->GetValue(ScAddress(2,7,1)));
m_pDoc->DeleteTab(0);
+ m_pDoc->SetValue(ScAddress(3,9,0), 11);
+ CPPUNIT_ASSERT_EQUAL(34.0, m_pDoc->GetValue(ScAddress(2,7,0)));
+
m_pDoc->DeleteTab(0);
}