[Libreoffice-commits] core.git: sc/qa
Eike Rathke
erack at redhat.com
Wed May 17 16:25:28 UTC 2017
sc/qa/unit/ucalc_formula.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 8326c48a1ac4855970f9232dba582a51461ac0b2
Author: Eike Rathke <erack at redhat.com>
Date: Wed May 17 18:24:16 2017 +0200
Unit test to ensure that calculating with the intersection works, tdf#96426
Change-Id: Ia447c91d80b51f183d591a89a103ba68173a9d85
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 0458749df73a..3290a7eb89a3 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -7854,6 +7854,12 @@ void Test::testIntersectionOpExcel()
aPos.IncRow();
m_pDoc->SetString(aPos,"=horz vert");
CPPUNIT_ASSERT_EQUAL_MESSAGE("A5 intersecting named expressions failed", 1.0, m_pDoc->GetValue(aPos));
+ aPos.IncRow();
+ m_pDoc->SetString(aPos,"=(horz vert)*2");
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("A6 calculating with intersecting named expressions failed", 2.0, m_pDoc->GetValue(aPos));
+ aPos.IncRow();
+ m_pDoc->SetString(aPos,"=2*(horz vert)");
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("A7 calculating with intersecting named expressions failed", 2.0, m_pDoc->GetValue(aPos));
m_pDoc->SetGrammar(FormulaGrammar::GRAM_ENGLISH);
More information about the Libreoffice-commits
mailing list