diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-02-21 14:06:11 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-02-21 14:06:11 +0000 |
commit | f76a4e7fa0085172d4b9459ac388aac7617af2b0 (patch) | |
tree | 704576204c532bd171f58e2d71cc257135becd7f /poi/src | |
parent | 2e155f30d261ea773a9d05862c8655e2d494c61a (diff) | |
download | poi-f76a4e7fa0085172d4b9459ac388aac7617af2b0.tar.gz poi-f76a4e7fa0085172d4b9459ac388aac7617af2b0.zip |
add tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898278 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src')
-rw-r--r-- | poi/src/test/java/org/apache/poi/ss/formula/functions/TestIndirect.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestIndirect.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestIndirect.java index 45f960e945..21d55c9ec7 100644 --- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestIndirect.java +++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestIndirect.java @@ -201,10 +201,13 @@ final class TestIndirect { @Test void testR1C1FullRow() throws Exception { 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); - confirm(feA, c, "INDIRECT(\"R[-100]\", FALSE)", 11.0); - confirm(feA, c, "INDIRECT(\"R1\", FALSE)", 11.0); + confirm(feA, c0, "INDIRECT(\"R[-100]\", FALSE)", 11.0); + confirm(feA, c0, "INDIRECT(\"R1\", FALSE)", 11.0); + //assertEquals(12.0, c1.getNumericCellValue()); } } |