Add test to show that bug #43251 is already fixed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@638804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2008-03-19 12:01:32 +00:00
parent a0d0fd14ef
commit 870c5e1889
2 changed files with 14 additions and 0 deletions

Binary file not shown.

View File

@ -1136,6 +1136,20 @@ extends TestCase {
//assertEquals("=CHOOSE(2,A2,A3,A4)", c2.getCellFormula());
}
/**
* Something up with the FileSharingRecord
*/
public void test43251() throws Exception {
FileInputStream in = new FileInputStream(new File(cwd, "43251.xls"));
// Used to blow up with an IllegalArgumentException
// when creating a FileSharingRecord
HSSFWorkbook wb = new HSSFWorkbook(in);
in.close();
assertEquals(1, wb.getNumberOfSheets());
}
/**
* Crystal reports generates files with short
* StyleRecords, which is against the spec