]> source.dussan.org Git - poi.git/commitdiff
Add a further test to TestHSSFRow which verifies that bug #43901 is invalid
authorNick Burch <nick@apache.org>
Wed, 9 Jan 2008 11:12:16 +0000 (11:12 +0000)
committerNick Burch <nick@apache.org>
Wed, 9 Jan 2008 11:12:16 +0000 (11:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610340 13f79535-47bb-0310-9956-ffa450edef68

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

index da9a885e8d8389c888e2979aa04425138e95d83d..92844da894b6a60478608dce82c122d00cb1f4e9 100644 (file)
@@ -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());
 
     }