sc/qa/unit/ucalc_formula.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 5a320d1ae20b58e839bb9f8a7deef0c837d0cce5 Author: Eike Rathke <er...@redhat.com> Date: Fri Jun 13 18:53:35 2014 +0200 unit test for ForcedArray matrix error propagation, fdo#79978 Change-Id: Ie57d1104785bd2c4f090c9872d93d4f82dc6b2d1 diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index b1ef561..9583600 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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits