mirror of https://github.com/apache/poi.git
add lowercase tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901408 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cefab980e4
commit
02a7002bd0
|
@ -44,6 +44,15 @@ public class TestXMatchFunction {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void testMicrosoftExample0Lowercase() throws IOException {
|
||||
try (HSSFWorkbook wb = initNumWorkbook("grape")) {
|
||||
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
|
||||
HSSFCell cell = wb.getSheetAt(0).getRow(2).createCell(5);
|
||||
assertDouble(fe, cell, "XMATCH(E3,C3:C7)", 2);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void testMicrosoftExample1() throws IOException {
|
||||
try (HSSFWorkbook wb = initNumWorkbook("Gra?")) {
|
||||
|
@ -57,6 +66,16 @@ public class TestXMatchFunction {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void testMicrosoftExample1Lowercase() throws IOException {
|
||||
try (HSSFWorkbook wb = initNumWorkbook("gra?")) {
|
||||
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
|
||||
HSSFCell cell = wb.getSheetAt(0).getRow(2).createCell(5);
|
||||
assertDouble(fe, cell, "XMATCH(E3,C3:C7,1)", 2);
|
||||
assertDouble(fe, cell, "XMATCH(E3,C3:C7,-1)", 5);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void testMicrosoftExample2() throws IOException {
|
||||
//the result in this example is correct but the description seems wrong from my testing
|
||||
|
|
Loading…
Reference in New Issue