Spread out test cases for readability
Vytautas Ĺ altenis vytas@rtfb.lt
Tue, 20 Oct 2015 20:31:08 +0300
2 files changed,
9 insertions(+),
0 deletions(-)
M
block_test.go
→
block_test.go
@@ -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", }
M
inline_test.go
→
inline_test.go
@@ -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", }