mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
add xlookup tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895547 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
37573b3b4e
commit
f33217b9e4
@ -41,6 +41,11 @@ public class TestXLookupFunction {
|
||||
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
|
||||
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
|
||||
assertString(fe, cell, "XLOOKUP(F2,B2:B11,D2:D11)", "+55");
|
||||
assertString(fe, cell, "XLOOKUP(\"Brazil\",B2:B11,D2:D11)", "+55");
|
||||
assertString(fe, cell, "XLOOKUP(\"brazil\",B2:B11,D2:D11)", "+55");
|
||||
//wildcard lookups
|
||||
assertString(fe, cell, "XLOOKUP(\"brazil\",B2:B11,D2:D11,,2)", "+55");
|
||||
assertString(fe, cell, "XLOOKUP(\"b*l\",B2:B11,D2:D11,,2)", "+55");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user