git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899131 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-03-22 12:39:46 +00:00
parent 0c4fec3528
commit 4508404af0
3 changed files with 6 additions and 6 deletions

View File

@ -36,9 +36,9 @@ public final class TestXSSFName extends BaseTestNamedRange {
super(XSSFITestDataProvider.instance);
}
//TODO combine testRepeatingRowsAndColums() for HSSF and XSSF
//TODO combine testRepeatingRowsAndColumns() for HSSF and XSSF
@Test
void testRepeatingRowsAndColums() throws Exception {
void testRepeatingRowsAndColumns() throws Exception {
// First test that setting RR&C for same sheet more than once only creates a
// single Print_Titles built-in record
XSSFWorkbook wb = new XSSFWorkbook();

View File

@ -2517,12 +2517,12 @@ public final class HSSFSheet implements Sheet {
@Override
public CellRangeAddress getRepeatingRows() {
return getRepeatingRowsOrColums(true);
return getRepeatingRowsOrColumns(true);
}
@Override
public CellRangeAddress getRepeatingColumns() {
return getRepeatingRowsOrColums(false);
return getRepeatingRowsOrColumns(false);
}
@Override
@ -2616,7 +2616,7 @@ public final class HSSFSheet implements Sheet {
}
private CellRangeAddress getRepeatingRowsOrColums(boolean rows) {
private CellRangeAddress getRepeatingRowsOrColumns(boolean rows) {
NameRecord rec = getBuiltinNameRecord(NameRecord.BUILTIN_PRINT_TITLE);
if (rec == null) {
return null;

View File

@ -243,7 +243,7 @@ final class TestFormulaEvaluatorBugs {
assertEquals("INDEX(C:C,2,1)", cellIDX.getCellFormula());
assertEquals(2, eva.evaluate(cellIDX).getNumberValue(), 0);
// Across two colums
// Across two columns
HSSFCell cellSUM2D = rowSUM2D.getCell(0);
assertEquals("SUM(C:D)", cellSUM2D.getCellFormula());
assertEquals(66, eva.evaluate(cellSUM2D).getNumberValue(), 0);