whitespace (tabs to spaces)
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xssf_structured_references@1747623 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b983f435d1
commit
12a8f5b603
@ -67,7 +67,7 @@ public final class HSSFFormulaParser {
|
|||||||
* @throws FormulaParseException if the formula has incorrect syntax or is otherwise invalid
|
* @throws FormulaParseException if the formula has incorrect syntax or is otherwise invalid
|
||||||
*/
|
*/
|
||||||
public static Ptg[] parse(String formula, HSSFWorkbook workbook, int formulaType, int sheetIndex) throws FormulaParseException {
|
public static Ptg[] parse(String formula, HSSFWorkbook workbook, int formulaType, int sheetIndex) throws FormulaParseException {
|
||||||
return FormulaParser.parse(formula, createParsingWorkbook(workbook), formulaType, sheetIndex, -1);
|
return FormulaParser.parse(formula, createParsingWorkbook(workbook), formulaType, sheetIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,11 +41,11 @@ import org.junit.Test;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
public final class TestXSSFFormulaParser {
|
public final class TestXSSFFormulaParser {
|
||||||
private static Ptg[] parse(FormulaParsingWorkbook fpb, String fmla) {
|
private static Ptg[] parse(FormulaParsingWorkbook fpb, String fmla) {
|
||||||
return FormulaParser.parse(fmla, fpb, FormulaType.CELL, -1, -1);
|
return FormulaParser.parse(fmla, fpb, FormulaType.CELL, -1, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void basicParsing() {
|
public void basicParsing() {
|
||||||
XSSFWorkbook wb = new XSSFWorkbook();
|
XSSFWorkbook wb = new XSSFWorkbook();
|
||||||
XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
|
XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
|
||||||
@ -120,7 +120,7 @@ public final class TestXSSFFormulaParser {
|
|||||||
assertEquals("SUM", ptgs[1].toFormulaString());
|
assertEquals("SUM", ptgs[1].toFormulaString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void builtInFormulas() {
|
public void builtInFormulas() {
|
||||||
XSSFWorkbook wb = new XSSFWorkbook();
|
XSSFWorkbook wb = new XSSFWorkbook();
|
||||||
XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
|
XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
|
||||||
@ -155,7 +155,7 @@ public final class TestXSSFFormulaParser {
|
|||||||
assertEquals("[0]!NR_Global_B2",((NameXPxg)ptgs[0]).toFormulaString());
|
assertEquals("[0]!NR_Global_B2",((NameXPxg)ptgs[0]).toFormulaString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void formulaReferencesOtherSheets() {
|
public void formulaReferencesOtherSheets() {
|
||||||
// Use a test file with the named ranges in place
|
// Use a test file with the named ranges in place
|
||||||
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56737.xlsx");
|
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56737.xlsx");
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user