diff options
author | Nick Burch <nick@apache.org> | 2008-01-09 11:12:16 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2008-01-09 11:12:16 +0000 |
commit | a01b3372a3f74d62148a39b43027598237a7a123 (patch) | |
tree | 9ad832e20dfd54b0f3a0c32424478723e189e081 /src/testcases | |
parent | 7b605f32e11d44af4af9f12f0e33ea511c433507 (diff) | |
download | poi-a01b3372a3f74d62148a39b43027598237a7a123.tar.gz poi-a01b3372a3f74d62148a39b43027598237a7a123.zip |
Add a further test to TestHSSFRow which verifies that bug #43901 is invalid
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610340 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-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()); } |