mirror of https://github.com/apache/poi.git
Bit more testing for 51024
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1090295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3b7d6f6f67
commit
9193c4171e
|
@ -2099,10 +2099,17 @@ if(1==2) {
|
||||||
c.setCellFormula("VLOOKUP(\"v A1\", A1:B2, 1, 1)");
|
c.setCellFormula("VLOOKUP(\"v A1\", A1:B2, 1, 1)");
|
||||||
assertEquals("v A1", eval.evaluate(c).getStringValue());
|
assertEquals("v A1", eval.evaluate(c).getStringValue());
|
||||||
|
|
||||||
|
c.setCellFormula("VLOOKUP(\"v A1\", A1:B2, 1, )");
|
||||||
|
assertEquals("v A1", eval.evaluate(c).getStringValue());
|
||||||
|
|
||||||
|
|
||||||
c.setCellFormula("HLOOKUP(\"v A1\", A1:B2, 1)");
|
c.setCellFormula("HLOOKUP(\"v A1\", A1:B2, 1)");
|
||||||
assertEquals("v A1", eval.evaluate(c).getStringValue());
|
assertEquals("v A1", eval.evaluate(c).getStringValue());
|
||||||
|
|
||||||
c.setCellFormula("HLOOKUP(\"v A1\", A1:B2, 1, 1)");
|
c.setCellFormula("HLOOKUP(\"v A1\", A1:B2, 1, 1)");
|
||||||
assertEquals("v A1", eval.evaluate(c).getStringValue());
|
assertEquals("v A1", eval.evaluate(c).getStringValue());
|
||||||
|
|
||||||
|
c.setCellFormula("HLOOKUP(\"v A1\", A1:B2, 1, )");
|
||||||
|
assertEquals("v A1", eval.evaluate(c).getStringValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue