|
|
|
@ -124,6 +124,13 @@ func TestExtractFrontMatterWithValidContent(t *testing.T) {
|
|
|
|
|
extractResult{fm, rest, e},
|
|
|
|
|
"parsing valid FrontMatter yields invalid result",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
fm, rest, e = parser.ExtractFrontMatter([]string{"", "Key: Value", "", "", "Another Key: Another Value", "---"})
|
|
|
|
|
asrt.EqualValues(
|
|
|
|
|
extractResult{map[string]string{"Key": "Value", "Another Key": "Another Value"}, empty, nil},
|
|
|
|
|
extractResult{fm, rest, e},
|
|
|
|
|
"parsing valid FrontMatter yields invalid result",
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func TestExtractFrontMatterWithBadKeys(t *testing.T) {
|
|
|
|
|