rewritted default variables assignment

git-svn-id: file:///srv/svn/repo/aya/trunk@7 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
zaitsev.serge
2014-12-05 18:26:15 +00:00
parent b9725275d2
commit bcc17b527b
2 changed files with 17 additions and 30 deletions

View File

@@ -32,7 +32,7 @@ func TestSplit2(t *testing.T) {
}
func TestMD(t *testing.T) {
v, body := md(`
v, body := md("foo.md", `
title: Hello, world!
keywords: foo, bar, baz
empty:
@@ -56,13 +56,13 @@ this: is a content`)
}
// Test empty md
v, body = md("")
v, body = md("foo.md", "")
if len(v) != 0 || len(body) != 0 {
t.Error(v, body)
}
// Test empty header
v, body = md("Hello")
v, body = md("foo.md", "Hello")
if len(v) != 0 || body != "Hello" {
t.Error(v, body)
}