Skip to content

Commit

Permalink
Closes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Chédru committed Apr 19, 2016
1 parent be781d4 commit 7749e0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/java/org/dhatim/fastexcel/Correctness.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ public void singleEmptyWorksheet() throws Exception {
byte[] data = writeWorkbook(wb -> wb.newWorksheet("Worksheet 1"));
}

@Test
public void worksheetWithNameLongerThan31Chars() throws Exception {
byte[] data = writeWorkbook(wb -> {
Worksheet ws = wb.newWorksheet("01234567890123456789012345678901");
assertThat(ws.getName()).isEqualTo("0123456789012345678901234567890");
});
}

@Test
public void checkMaxRows() throws Exception {
byte[] data = writeWorkbook(wb -> wb.newWorksheet("Worksheet 1").value(Worksheet.MAX_ROWS - 1, 0, "test"));
Expand Down

0 comments on commit 7749e0e

Please sign in to comment.