From 784c88f0798e63f4b7b450209698d240f943b863 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 21 Feb 2022 17:44:20 +0000 Subject: [PATCH] add tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898282 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/formula/functions/TestIndirect.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 21d55c9ec7..12c7169dfe 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 @@ -195,6 +195,9 @@ final class TestIndirect { HSSFFormulaEvaluator feA = new HSSFFormulaEvaluator(wbA); confirm(feA, c, "INDIRECT(\"C[-17]\", FALSE)", 14.0); confirm(feA, c, "INDIRECT(\"C4\", FALSE)", 14.0); + confirm(feA, c, "INDIRECT(\"c4\", FALSE)", 14.0); + confirm(feA, c, "INDIRECT(\"Sheet1!C4\", FALSE)", 14.0); + confirm(feA, c, "INDIRECT(\"CX\", FALSE)", ErrorEval.REF_INVALID); } } @@ -207,7 +210,10 @@ final class TestIndirect { HSSFFormulaEvaluator feA = new HSSFFormulaEvaluator(wbA); confirm(feA, c0, "INDIRECT(\"R[-100]\", FALSE)", 11.0); confirm(feA, c0, "INDIRECT(\"R1\", FALSE)", 11.0); + confirm(feA, c0, "INDIRECT(\"r1\", FALSE)", 11.0); + confirm(feA, c0, "INDIRECT(\"Sheet1!R1\", FALSE)", 11.0); //assertEquals(12.0, c1.getNumericCellValue()); + confirm(feA, c0, "INDIRECT(\"RX\", FALSE)", ErrorEval.REF_INVALID); } } -- 2.39.5