From 5a320d1ae20b58e839bb9f8a7deef0c837d0cce5 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 13 Jun 2014 18:53:35 +0200 Subject: unit test for ForcedArray matrix error propagation, fdo#79978 Change-Id: Ie57d1104785bd2c4f090c9872d93d4f82dc6b2d1 --- sc/qa/unit/ucalc_formula.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sc') diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index b1ef5614d9c1..95836004bda9 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -2563,6 +2563,11 @@ void Test::testFuncSUMPRODUCT() m_pDoc->SetValue(ScAddress(1,2,0), 5.0); // B3 CPPUNIT_ASSERT_EQUAL(-3.0, m_pDoc->GetValue(aPos)); + // Force an error in C2 and test ForcedArray matrix error propagation. + m_pDoc->SetString( 2, 1, 0, "=1/0"); + sal_uInt16 nError = m_pDoc->GetErrCode(aPos); + CPPUNIT_ASSERT_MESSAGE("Formula result should be a propagated error", nError); + m_pDoc->DeleteTab(0); } -- cgit