sc/qa/unit/uicalc/uicalc.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+)
New commits: commit d3c38d590bec7a2ea3b4415ba21cbd5137121370 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Mar 20 10:12:36 2025 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Mar 20 12:33:10 2025 +0100 tdf#165821: sc_uicalc: Add unittest Change-Id: I06b8b4803a5df590c859b820eeed90811e847ec7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183154 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/sc/qa/unit/uicalc/uicalc.cxx b/sc/qa/unit/uicalc/uicalc.cxx index 375aa5fe8be3..1c18687f2c18 100644 --- a/sc/qa/unit/uicalc/uicalc.cxx +++ b/sc/qa/unit/uicalc/uicalc.cxx @@ -981,6 +981,19 @@ CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf147744) pMod->SetInputOptions(aInputOption); } +CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf165821) +{ + createScDoc(); + + insertStringToCell(u"A1"_ustr, u"=COUNTA(K:K)"); + + ScDocument* pDoc = getScDoc(); + // Without the fix in place, this test would have failed with + // - Expected: 0 + // - Actual : 1 + CPPUNIT_ASSERT_EQUAL(u"0"_ustr, pDoc->GetString(ScAddress(0, 0, 0))); +} + CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf138432) { createScDoc("tdf138432.ods");