fixed empty header in markdown
git-svn-id: file:///srv/svn/repo/aya/trunk@3 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
12
zs_test.go
12
zs_test.go
@@ -46,6 +46,18 @@ this: is a content`)
|
||||
if body != "this: is a content" {
|
||||
t.Error(body)
|
||||
}
|
||||
|
||||
// Test empty md
|
||||
v, body = md("")
|
||||
if len(v) != 0 || len(body) != 0 {
|
||||
t.Error(v, body)
|
||||
}
|
||||
|
||||
// Test empty header
|
||||
v, body = md("Hello")
|
||||
if len(v) != 0 || body != "Hello" {
|
||||
t.Error(v, body)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRender(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user