]> source.dussan.org Git - poi.git/commitdiff
add tests
authorPJ Fanning <fanningpj@apache.org>
Mon, 21 Feb 2022 14:06:11 +0000 (14:06 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 21 Feb 2022 14:06:11 +0000 (14:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898278 13f79535-47bb-0310-9956-ffa450edef68

poi/src/test/java/org/apache/poi/ss/formula/functions/TestIndirect.java

index 45f960e945783078425cebd95cd122c3457a3f2d..21d55c9ec7244f3343f229e18656af8aa5ab9049 100644 (file)
@@ -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());
         }
     }