summaryrefslogtreecommitdiffstats
path: root/write_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'write_test.go')
-rw-r--r--write_test.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/write_test.go b/write_test.go
index 18809b1..8cca449 100644
--- a/write_test.go
+++ b/write_test.go
@@ -13,22 +13,23 @@ var writeTests = map[string]*Document{
},
"title\n\tfoo bar baz\n" +
- "links\n\tqwe asd\n\tzxc 123\n\tfoo\n" +
- "site\n\tfoo\n\t\tbar\n\t\tbaz/quux\n\t\t\t123\n\ttest\n": &Document{
+ "links\n\tqwe\\ asd zxc 123\n\tfoo\n" +
+ "site\n\tfoo Foo\n\t\tbar\n\t\tbaz/qu\\ ux Test\n\t\t\t123\n\ttest\n": &Document{
Title: "foo bar baz",
Links: []Link{
- Link{"qwe", "asd", ""},
- Link{"zxc", "123", ""},
+ Link{"qwe asd", "zxc 123", ""},
Link{"foo", "", ""},
},
Site: Site{
Children: []Site{
Site{
Path: "foo",
+ Name: "Foo",
Children: []Site{
Site{Path: "bar"},
Site{
- Path: "baz/quux",
+ Path: "baz/qu ux",
+ Name: "Test",
Children: []Site{
Site{Path: "123"},
},