Browse Source

Fix test case TestBug57294

pull/309/head
antony liu 6 years ago
parent
commit
cedec074fc
  1. 4
      ooxml/XSSF/UserModel/XSSFWorkbook.cs
  2. 5
      testcases/ooxml/XSSF/UserModel/TestUnfixedBugs.cs

4
ooxml/XSSF/UserModel/XSSFWorkbook.cs

@ -341,11 +341,11 @@ namespace NPOI.XSSF.UserModel
else if (p is MapInfo) mapInfo = (MapInfo)p;
else if (p is XSSFSheet)
{
shIdMap.Add(rp.Relationship.Id, (XSSFSheet)p);
shIdMap[rp.Relationship.Id] = (XSSFSheet)p;
}
else if (p is ExternalLinksTable)
{
elIdMap.Add(rp.Relationship.Id, (ExternalLinksTable)p);
elIdMap[rp.Relationship.Id] = (ExternalLinksTable)p;
}
}

5
testcases/ooxml/XSSF/UserModel/TestUnfixedBugs.cs

@ -350,8 +350,9 @@ namespace TestCases.XSSF.UserModel
ICell cell = row.GetCell(0);
Assert.IsNotNull(cell, "Expecting cell at rownum " + rowNum);
Assert.AreEqual(contents + ".0", cell.ToString(),
"Did not have expected contents at rownum " + rowNum);
//why concate ".0"? There is no ".0" in excel.
Assert.AreEqual(contents, cell.ToString(), "Did not have expected contents at rownum " + rowNum);
//Assert.AreEqual(contents + ".0", cell.ToString(), "Did not have expected contents at rownum " + rowNum);
}
[Test]

Loading…
Cancel
Save