mirror of https://github.com/apache/poi.git
add tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898282 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f76a4e7fa0
commit
784c88f079
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue