Skip to content

Commit fd6ff68

Browse files
committed
Simplify the TagsIdentifier test to the one from the comment
1 parent 2483de1 commit fd6ff68

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/html_test.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,20 @@ BOOST_AUTO_TEST_CASE(TagsIdentifiers) {
4646
std::string html(
4747
"<div>\n"
4848
" <p>Text</p>\n"
49-
" <span>not block text</span>\n"
50-
" <embed>alt text</embed>\n"
49+
" not block text\n"
5150
" <p>Paragraph</p>\n"
51+
" Inside div\n"
5252
"</div>"
5353
);
5454

5555
std::string expected(
5656
"Text\n"
57-
"not block text alt text\n"
57+
"not block text\n"
5858
"Paragraph\n"
59+
"Inside div\n"
5960
);
6061

61-
std::vector<std::string> tags{"p", "div", "p"};
62+
std::vector<std::string> tags{"p", "div", "p", "div"};
6263

6364
AnnotatedText out;
6465
auto retval = processHTML(html, out, {});

0 commit comments

Comments
 (0)