From: Nick Burch Date: Fri, 8 Apr 2011 15:25:17 +0000 (+0000) Subject: Bit more testing for 51024 X-Git-Tag: REL_3_8_BETA3~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9193c4171e65903cc96d8ae63574088e21fcc3ed;p=poi.git Bit more testing for 51024 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1090295 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index cb1ba7da91..2dfe1a01ae 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -2099,10 +2099,17 @@ if(1==2) { c.setCellFormula("VLOOKUP(\"v A1\", A1:B2, 1, 1)"); 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)"); assertEquals("v A1", eval.evaluate(c).getStringValue()); c.setCellFormula("HLOOKUP(\"v A1\", A1:B2, 1, 1)"); assertEquals("v A1", eval.evaluate(c).getStringValue()); + + c.setCellFormula("HLOOKUP(\"v A1\", A1:B2, 1, )"); + assertEquals("v A1", eval.evaluate(c).getStringValue()); } }