Skip to content

Commit

Permalink
Add failing test TestLinebreaksBeforeHeadings
Browse files Browse the repository at this point in the history
  • Loading branch information
sometimesfood committed May 8, 2018
1 parent dcf1ef8 commit 8cc4f08
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions goorgeous_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,16 @@ func TestFixedWidthAreas(t *testing.T) {
testOrgCommon(testCases, t)
}

func TestLinebreaksBeforeHeadings(t *testing.T) {
testCases := map[string]testCase{
"linebreaks-before-headings": {
"* Foo\nFoo paragraph.\n* Bar\nBar paragraph.",
"<h1 id=\"foo\">Foo</h1>\n\n<p>Foo paragraph.</p>\n\n<h1 id=\"bar\">Bar</h1>\n\n<p>Bar paragraph.</p>\n",
},
}
testOrgCommon(testCases, t)
}

func testOrgCommon(testCases map[string]testCase, t *testing.T) {
for caseName, tc := range testCases {

Expand Down

0 comments on commit 8cc4f08

Please sign in to comment.