Add additional check as mentioned in bug 50060

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808503 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2017-09-16 08:20:32 +00:00
parent 445852e773
commit 23c2850586

View File

@ -207,6 +207,9 @@ public final class TestLists extends TestCase {
assertEquals(4, r.getParagraph(21).getIlvl());
assertEquals(1, r.getParagraph(22).getIlvl());
assertEquals(0, r.getParagraph(23).getIlvl());
// Try to read numCharacterRuns, see bug 50060
assertEquals(1, r.getParagraph(0).numCharacterRuns());
}
public void testSpecificNumberedOrderedListFeatures() throws IOException {
@ -250,5 +253,4 @@ public final class TestLists extends TestCase {
assertEquals((byte)3, lvl[1]);
assertEquals((byte)5, lvl[2]);
}
}