]> source.dussan.org Git - poi.git/commitdiff
update test case
authorSergey Vladimirov <sergey@apache.org>
Sun, 30 Oct 2011 09:11:20 +0000 (09:11 +0000)
committerSergey Vladimirov <sergey@apache.org>
Sun, 30 Oct 2011 09:11:20 +0000 (09:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195134 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHWPFOldDocument.java

index 46bd00dedd65cc673259281fed3454d0a5b43296..8eca387f0cabd84192ed1363f4aa29f21d2072b9 100644 (file)
@@ -42,7 +42,7 @@ public final class TestHWPFOldDocument extends HWPFTestCase {
       // Check
       assertEquals(1, doc.getRange().numSections());
       assertEquals(1, doc.getRange().numParagraphs());
-      assertEquals(2, doc.getRange().numCharacterRuns());
+      assertEquals(1, doc.getRange().numCharacterRuns());
       
       assertEquals(
             "The quick brown fox jumps over the lazy dog\r",
@@ -96,7 +96,7 @@ public final class TestHWPFOldDocument extends HWPFTestCase {
       assertEquals(5, doc.getRange().getParagraph(4).numCharacterRuns());
       assertEquals(1, doc.getRange().getParagraph(5).numCharacterRuns());
       // Normal, superscript for 4th, normal
-      assertEquals(4, doc.getRange().getParagraph(6).numCharacterRuns());
+      assertEquals(3, doc.getRange().getParagraph(6).numCharacterRuns());
    }
    
    /**