added test case for the blank line

This commit is contained in:
Nico 2020-11-12 11:00:34 +00:00
parent c462020d16
commit 561165ad84
1 changed files with 8 additions and 0 deletions

View File

@ -170,6 +170,14 @@ func TestParseLine(t *testing.T) {
Literal: "\n",
Text: "\n"},
},
LineCase{
Str: "",
Preformatted: false,
Want: GemtextObject{
Type: TEXT,
Literal: "",
Text: ""},
},
}
for _, c := range cases {
got, _ := ParseLine(c.Str, c.Preformatted)