diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-08-28 23:15:19 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-08-28 23:15:19 +0100 |
| commit | a55bb3b713dd4f38e95b98acbf284dc22077f7eb (patch) | |
| tree | de7bc9308be5a05830bf7e54a17f268040d6c26f /src/test/java | |
| parent | 93e92326208e3a374c170beeb323578fedf0d337 (diff) | |
Add comment reference document matcher
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/styles/parsing/StyleMapParserTests.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/styles/parsing/StyleMapParserTests.java b/src/test/java/org/zwobble/mammoth/tests/styles/parsing/StyleMapParserTests.java index e76a632..d6205cd 100644 --- a/src/test/java/org/zwobble/mammoth/tests/styles/parsing/StyleMapParserTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/styles/parsing/StyleMapParserTests.java @@ -54,6 +54,12 @@ public class StyleMapParserTests { } @Test + public void canMapCommentReference() { + StyleMap styleMap = StyleMapParser.parse("comment-reference =>"); + assertThat(styleMap, deepEquals(StyleMap.builder().commentReference(HtmlPath.EMPTY).build())); + } + + @Test public void blankLinesAreIgnored() { StyleMap styleMap = StyleMapParser.parse("\n\n \n\np =>\n\r\n"); assertThat(styleMap, deepEquals(StyleMap.builder().mapParagraph(ParagraphMatcher.ANY, HtmlPath.EMPTY).build())); |
