clang-format: apply it to subsequent_export_test2.cxx
After
commit 038131a16e
Author: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Date: Thu May 7 05:14:28 2026 +0900
sc: Follow-up to preserve #SPILL! state through ODS import
Change-Id: I816c0a355693703e87dfa42406f8bf23d71ce241
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205765
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
@@ -1822,8 +1822,7 @@ CPPUNIT_TEST_FIXTURE(ScExportTest2, testArrayFormulaSpillRoundtripODS)
|
||||
ScDocument* pDocument = getScDoc();
|
||||
ScFormulaCell* pFormulaCell = pDocument->GetFormulaCell(ScAddress(0, 0, 0));
|
||||
CPPUNIT_ASSERT_MESSAGE("UNIQUE result should be #SPILL!", pFormulaCell != nullptr);
|
||||
CPPUNIT_ASSERT_EQUAL(sal_Int32(FormulaError::Spill),
|
||||
sal_Int32(pFormulaCell->GetErrCode()));
|
||||
CPPUNIT_ASSERT_EQUAL(sal_Int32(FormulaError::Spill), sal_Int32(pFormulaCell->GetErrCode()));
|
||||
}
|
||||
|
||||
saveAndReload(TestFilter::ODS);
|
||||
@@ -1835,15 +1834,13 @@ CPPUNIT_TEST_FIXTURE(ScExportTest2, testArrayFormulaSpillRoundtripODS)
|
||||
ScFormulaCell* pFormulaCell = pDocument->GetFormulaCell(ScAddress(0, 0, 0));
|
||||
CPPUNIT_ASSERT_MESSAGE("Expected a formula cell at A1", pFormulaCell != nullptr);
|
||||
CPPUNIT_ASSERT_EQUAL(ScMatrixMode::Formula, pFormulaCell->GetMatrixFlag());
|
||||
CPPUNIT_ASSERT_EQUAL(sal_Int32(FormulaError::Spill),
|
||||
sal_Int32(pFormulaCell->GetErrCode()));
|
||||
CPPUNIT_ASSERT_EQUAL(sal_Int32(FormulaError::Spill), sal_Int32(pFormulaCell->GetErrCode()));
|
||||
CPPUNIT_ASSERT_MESSAGE("UNIQUE token array must keep its dynamic array flag",
|
||||
pFormulaCell->GetCode()->HasDynamicArrayFunction());
|
||||
|
||||
clearCell(u"A2"_ustr);
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(sal_Int32(FormulaError::NONE),
|
||||
sal_Int32(pFormulaCell->GetErrCode()));
|
||||
CPPUNIT_ASSERT_EQUAL(sal_Int32(FormulaError::NONE), sal_Int32(pFormulaCell->GetErrCode()));
|
||||
SCCOL nCols = 0;
|
||||
SCROW nRows = 0;
|
||||
pFormulaCell->GetMatColsRows(nCols, nRows);
|
||||
|
||||
Reference in New Issue
Block a user