]> source.dussan.org Git - poi.git/commitdiff
bug 57523: add unit test written by Dominik Stadler
authorJaven O'Neal <onealj@apache.org>
Mon, 20 Jun 2016 06:27:12 +0000 (06:27 +0000)
committerJaven O'Neal <onealj@apache.org>
Mon, 20 Jun 2016 06:27:12 +0000 (06:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1749267 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
test-data/spreadsheet/57523.xlsx [new file with mode: 0644]

index 31a54bf14f4536860ddd91d19f6b3a57a1337518..fc5070395d2aca2990a85d1feae4c533acd36f25 100644 (file)
@@ -3067,4 +3067,19 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
         assertEquals("Table1", tables.get(0).getName()); //FIXME: what is the table name?
         assertEquals("Table2", tables.get(1).getName()); //FIXME: what is the table name?
     }
+    
+    @Test
+    public void test57523() {
+        Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57523.xlsx");
+        Sheet sheet = wb.getSheet("Attribute Master");
+        Row row = sheet.getRow(16);
+
+        int N = CellReference.convertColStringToIndex("N");
+        Cell N16 = row.getCell(N);
+        assertEquals(500.0, N16.getNumericCellValue(), 0.00001);
+        
+        int P = CellReference.convertColStringToIndex("P");
+        Cell P16 = row.getCell(P);
+        assertEquals(10.0, P16.getNumericCellValue(), 0.00001);
+    }
 }
diff --git a/test-data/spreadsheet/57523.xlsx b/test-data/spreadsheet/57523.xlsx
new file mode 100644 (file)
index 0000000..99fe81d
Binary files /dev/null and b/test-data/spreadsheet/57523.xlsx differ