[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/qa
Kohei Yoshida
kohei.yoshida at gmail.com
Mon Jul 29 21:39:53 PDT 2013
sc/qa/unit/ucalc_formula.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 8fcf6c45e4f4be7d705faedd4cda619d2216d400
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Tue Jul 30 00:40:36 2013 -0400
A little more test.
Change-Id: I4c5590609122602e5828bbc3ba52ed9a565f0aac
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 1dba453..ac9257d 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);
}
More information about the Libreoffice-commits
mailing list