Skip to content

Commit

Permalink
#247 extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 6, 2024
1 parent e6d3e28 commit 818f3ea
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/java/com/jcabi/xml/XMLDocumentTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -428,4 +428,19 @@ void extractsNodesFromPom() throws Exception {
Matchers.hasSize(2)
);
}

@Test
void stripsUnnecessaryWhiteSpacesWhileParsing() {
MatcherAssert.assertThat(
new XMLDocument(
"<x>\n <y>hello</y>\n</x>".getBytes()
),
Matchers.equalTo(
new XMLDocument(
"<x> \n <y>hello</y> \n </x>".getBytes()
)
)
);
}

}

0 comments on commit 818f3ea

Please sign in to comment.