parent
1e2c72c2a5
commit
b0ba3cec5f
|
@ -6,7 +6,7 @@ public class TextBlocks13 {
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<p>example text</p>
|
<span>example text</span>
|
||||||
</body>
|
</body>
|
||||||
</html>""";
|
</html>""";
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ class TextBlocks13UnitTest {
|
||||||
String expected = "<html>\n"
|
String expected = "<html>\n"
|
||||||
+ "\n"
|
+ "\n"
|
||||||
+ " <body>\n"
|
+ " <body>\n"
|
||||||
+ " <p>example text</p>\n"
|
+ " <span>example text</span>\n"
|
||||||
+ " </body>\n"
|
+ " </body>\n"
|
||||||
+ "</html>";
|
+ "</html>";
|
||||||
assertThat(subject.getBlockOfHtml()).isEqualTo(expected);
|
assertThat(subject.getBlockOfHtml()).isEqualTo(expected);
|
||||||
|
@ -20,7 +20,7 @@ class TextBlocks13UnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenAnOldStyleString_whenComparing_thenEqualsTextBlock() {
|
void givenAnOldStyleString_whenComparing_thenEqualsTextBlock() {
|
||||||
String expected = "<html>\n\n <body>\n <p>example text</p>\n </body>\n</html>";
|
String expected = "<html>\n\n <body>\n <span>example text</span>\n </body>\n</html>";
|
||||||
assertThat(subject.getBlockOfHtml()).isEqualTo(expected);
|
assertThat(subject.getBlockOfHtml()).isEqualTo(expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue