comparison zs_test.go @ 34:ed40ca93db1e draft

added explicit yaml separator, fixed amber compilation sequence
author zaitsev.serge
date Wed, 02 Sep 2015 17:35:26 +0000
parents e3c902a7380d
children
comparison
equal deleted inserted replaced
33:e3c902a7380d 34:ed40ca93db1e
51 func TestVars(t *testing.T) { 51 func TestVars(t *testing.T) {
52 tests := map[string]Vars{ 52 tests := map[string]Vars{
53 ` 53 `
54 foo: bar 54 foo: bar
55 title: Hello, world! 55 title: Hello, world!
56 56 ---
57 Some content in markdown 57 Some content in markdown
58 `: Vars{ 58 `: Vars{
59 "foo": "bar", 59 "foo": "bar",
60 "title": "Hello, world!", 60 "title": "Hello, world!",
61 "url": "test.html", 61 "url": "test.html",
62 "file": "test.md", 62 "file": "test.md",
63 "output": filepath.Join(PUBDIR, "test.html"), 63 "output": filepath.Join(PUBDIR, "test.html"),
64 "__content": "Some content in markdown\n", 64 "__content": "Some content in markdown\n",
65 }, 65 },
66 `url: "example.com/foo.html" 66 `
67 67 url: "example.com/foo.html"
68 ---
68 Hello 69 Hello
69 `: Vars{ 70 `: Vars{
70 "url": "example.com/foo.html", 71 "url": "example.com/foo.html",
71 "__content": "Hello\n", 72 "__content": "Hello\n",
72 }, 73 },