all repos — grayfriday @ a178dd93fe2be7de3fa030f4e06c410e1c1d2d0d

blackfriday fork with a few changes

markdown_test.go (view raw)

 1//
 2// Blackfriday Markdown Processor
 3// Available at http://github.com/russross/blackfriday
 4//
 5// Copyright © 2011 Russ Ross <russ@russross.com>.
 6// Distributed under the Simplified BSD License.
 7// See README.md for details.
 8//
 9
10//
11// Unit tests for full document parsing and rendering
12//
13
14package blackfriday
15
16import "testing"
17
18func TestDocument(t *testing.T) {
19	t.Parallel()
20	var tests = []string{
21		// Empty document.
22		"",
23		"",
24
25		" ",
26		"",
27
28		// This shouldn't panic.
29		// https://github.com/russross/blackfriday/issues/172
30		"[]:<",
31		"<p>[]:&lt;</p>\n",
32
33		// This shouldn't panic.
34		// https://github.com/russross/blackfriday/issues/173
35		"   [",
36		"<p>[</p>\n",
37	}
38	doTests(t, tests)
39}