]> source.dussan.org Git - poi.git/commitdiff
Bit more testing for 51024
authorNick Burch <nick@apache.org>
Fri, 8 Apr 2011 15:25:17 +0000 (15:25 +0000)
committerNick Burch <nick@apache.org>
Fri, 8 Apr 2011 15:25:17 +0000 (15:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1090295 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

index cb1ba7da91438817d45ba8c16c058a8224eb3065..2dfe1a01aeb9ebbf5bce65e13103f5bbf90c6cd0 100644 (file)
@@ -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());
     }
 }