add tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898278 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-02-21 14:06:11 +00:00
parent 2e155f30d2
commit f76a4e7fa0
1 changed files with 6 additions and 3 deletions

View File

@ -201,10 +201,13 @@ final class TestIndirect {
@Test @Test
void testR1C1FullRow() throws Exception { void testR1C1FullRow() throws Exception {
try (HSSFWorkbook wbA = createWBA()) { try (HSSFWorkbook wbA = createWBA()) {
HSSFCell c = wbA.getSheetAt(0).createRow(100).createCell(0); HSSFRow row = wbA.getSheetAt(0).createRow(100);
HSSFCell c0 = row.createCell(0);
HSSFCell c1 = row.createCell(1);
HSSFFormulaEvaluator feA = new HSSFFormulaEvaluator(wbA); HSSFFormulaEvaluator feA = new HSSFFormulaEvaluator(wbA);
confirm(feA, c, "INDIRECT(\"R[-100]\", FALSE)", 11.0); confirm(feA, c0, "INDIRECT(\"R[-100]\", FALSE)", 11.0);
confirm(feA, c, "INDIRECT(\"R1\", FALSE)", 11.0); confirm(feA, c0, "INDIRECT(\"R1\", FALSE)", 11.0);
//assertEquals(12.0, c1.getNumericCellValue());
} }
} }