mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Spread out test cases for readability
This commit is contained in:
parent
5d3d5c198e
commit
c9f5708bd5
|
@ -1408,8 +1408,10 @@ func TestBlockComments(t *testing.T) {
|
|||
var tests = []string{
|
||||
"Some text\n\n<!-- comment -->\n",
|
||||
"<p>Some text</p>\n\n<!-- comment -->\n",
|
||||
|
||||
"Some text\n\n<!--\n\nmultiline\ncomment\n-->\n",
|
||||
"<p>Some text</p>\n\n<!--\n\nmultiline\ncomment\n-->\n",
|
||||
|
||||
"Some text\n\n<!--\n\n<div><p>Commented</p>\n<span>html</span></div>\n-->\n",
|
||||
"<p>Some text</p>\n\n<!--\n\n<div><p>Commented</p>\n<span>html</span></div>\n-->\n",
|
||||
}
|
||||
|
|
|
@ -977,18 +977,25 @@ func TestInlineComments(t *testing.T) {
|
|||
var tests = []string{
|
||||
"Hello <!-- there ->\n",
|
||||
"<p>Hello <!— there –></p>\n",
|
||||
|
||||
"Hello <!-- there -->\n",
|
||||
"<p>Hello <!-- there --></p>\n",
|
||||
|
||||
"Hello <!-- there -->",
|
||||
"<p>Hello <!-- there --></p>\n",
|
||||
|
||||
"Hello <!---->\n",
|
||||
"<p>Hello <!----></p>\n",
|
||||
|
||||
"Hello <!-- there -->\na",
|
||||
"<p>Hello <!-- there -->\na</p>\n",
|
||||
|
||||
"* list <!-- item -->\n",
|
||||
"<ul>\n<li>list <!-- item --></li>\n</ul>\n",
|
||||
|
||||
"<!-- Front --> comment\n",
|
||||
"<p><!-- Front --> comment</p>\n",
|
||||
|
||||
"blahblah\n<!--- foo -->\nrhubarb\n",
|
||||
"<p>blahblah\n<!--- foo -->\nrhubarb</p>\n",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user