diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java index da9a885e8d..92844da894 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java @@ -56,6 +56,11 @@ public class TestHSSFRow row.createCell((short) 1); assertEquals(1, row.getFirstCellNum()); assertEquals(2, row.getLastCellNum()); + + // check the exact case reported in 'bug' 43901 - notice that the cellNum is '0' based + row.createCell((short) 3); + assertEquals(1, row.getFirstCellNum()); + assertEquals(3, row.getLastCellNum()); } |