added test case for the blank line
This commit is contained in:
parent
c462020d16
commit
561165ad84
|
@ -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)
|
||||
|
|
Reference in New Issue
Block a user