func TestHasInvalidFrontmatter(t *testing.T) {

	// stub our cheatsheet content (with invalid frontmatter)
	markdown := `---
syntax: go
tags: [ test ]
To foo the bar: baz`

	// parse the frontmatter
	text, _, err := Parse(markdown)

	// assert that an error was returned
	if err == nil {
		t.Error("failed to error on invalid frontmatter")
	}

	// assert that the "raw" markdown was returned
	if text != markdown {
		t.Errorf("failed to parse text: want: %s, got: %s", markdown, text)
	}
}
// TestHasInvalidFrontmatter asserts that markdown is properly parsed when it
// contains invalid frontmatter
TestHasInvalidFrontmatter asserts that markdown is properly parsed when it
contains invalid frontmatter
// TestHasInvalidFrontmatter asserts that markdown is properly parsed when it // contains invalid frontmatter
func TestHasInvalidFrontmatter(t *testing.T) {
	markdown := `---
syntax: go
tags: [ test ]
To foo the bar: baz`
	text, _, err := Parse(markdown)
	if err == nil {
		t.Error("failed to error on invalid frontmatter")
	}
	if text != markdown {
		t.Errorf("failed to parse text: want: %s, got: %s", markdown, text)
	}
}
func TestHasInvalidFrontmatter ( t * testing . T ) { markdown := `---
syntax: go
tags: [ test ]
To foo the bar: baz` text , _ , err := Parse ( markdown ) if err == nil { t . Error ( " " ) } if text != markdown { t . Errorf ( " " , markdown , text ) } }
TestHasInvalidFrontmatter asserts that markdown is properly parsed when it
contains invalid frontmatter
TestHasInvalidFrontmatter asserts that markdown is properly parsed when it contains invalid frontmatter
// stub our cheatsheet content (with invalid frontmatter) // parse the frontmatter // assert that an error was returned // assert that the "raw" markdown was returned