Mercurial > yakumo_izuru > aya
comparison zs_test.go @ 2:fd79b3a90bef draft
fixed empty header in markdown
author | zaitsev.serge |
---|---|
date | Fri, 05 Dec 2014 17:09:10 +0000 |
parents | d647affd8ae9 |
children | 05fc24caac37 |
comparison
equal
deleted
inserted
replaced
1:d647affd8ae9 | 2:fd79b3a90bef |
---|---|
44 t.Error() | 44 t.Error() |
45 } | 45 } |
46 if body != "this: is a content" { | 46 if body != "this: is a content" { |
47 t.Error(body) | 47 t.Error(body) |
48 } | 48 } |
49 | |
50 // Test empty md | |
51 v, body = md("") | |
52 if len(v) != 0 || len(body) != 0 { | |
53 t.Error(v, body) | |
54 } | |
55 | |
56 // Test empty header | |
57 v, body = md("Hello") | |
58 if len(v) != 0 || body != "Hello" { | |
59 t.Error(v, body) | |
60 } | |
49 } | 61 } |
50 | 62 |
51 func TestRender(t *testing.T) { | 63 func TestRender(t *testing.T) { |
52 eval := func(a []string, vars map[string]string) (string, error) { | 64 eval := func(a []string, vars map[string]string) (string, error) { |
53 return "hello", nil | 65 return "hello", nil |