Skip to content

Commit

Permalink
Added multi paragraph segment test (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen committed Aug 25, 2020
1 parent 422ea05 commit 5059b41
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -35,6 +35,13 @@ public void testUndo() {
});
}

@Test
public void testMultiParagraphFromSegment() {
TextOps<String, Void> segOps = SegmentOps.styledTextOps();
ReadOnlyStyledDocument<Void, String, Void> doc0 = fromSegment("Foo\nBar", NULL, NULL, segOps);
assertEquals( 2, doc0.getParagraphCount() );
}

@Test
public void deleteNewlineTest() {
TextOps<String, Void> segOps = SegmentOps.styledTextOps();
Expand Down

0 comments on commit 5059b41

Please sign in to comment.