all repos — grayfriday @ c9f5708bd5bc263527a4893542d3a0668a19a065

blackfriday fork with a few changes

Spread out test cases for readability
Vytautas Ĺ altenis vytas@rtfb.lt
Tue, 20 Oct 2015 20:31:08 +0300
commit

c9f5708bd5bc263527a4893542d3a0668a19a065

parent

5d3d5c198ebf779798f95e73e990ecc271db3735

2 files changed, 9 insertions(+), 0 deletions(-)

jump to
M block_test.goblock_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.goinline_test.go

@@ -977,18 +977,25 @@ func TestInlineComments(t *testing.T) {

var tests = []string{ "Hello <!-- there ->\n", "<p>Hello &lt;!&mdash; there &ndash;&gt;</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", }