summaryrefslogtreecommitdiffstats
path: root/parse_test.go
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2021-12-23 01:54:47 +0000
committerclsr <clsr@clsr.net>2021-12-23 02:51:49 +0000
commit43428e759d9fbc5a319c2b929bfb4469938cc386 (patch)
tree1ee452ff23249bf10653481599f8639aa46ceb25 /parse_test.go
parent690a7183d7eca35b59e23e556b0c6492df08ffa5 (diff)
downloadcnm-go-master.tar.gz
cnm-go-master.zip
Add EscapeAll and escape all spaces in linksHEADv0.4.2master
Diffstat (limited to 'parse_test.go')
-rw-r--r--parse_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/parse_test.go b/parse_test.go
index e70b833..1c7dad9 100644
--- a/parse_test.go
+++ b/parse_test.go
@@ -269,7 +269,7 @@ var parseTests = map[string]*Document{
"title\n\tfoo bar\n" +
"links\n\tqwe asd\n\tzxc 123\n" +
- "site\n\tfoo\n\t\tbar\n\t\tbaz/quux\n\t\t\t123\n" +
+ "site\n\tfoo Foo\n\t\tbar\n\t\tbaz/qu\\ ux Test\n\t\t\t123\n" +
"title\n\tbaz\n" +
"links\n\tfoo\n" +
"site\n\ttest": &Document{
@@ -283,10 +283,12 @@ var parseTests = map[string]*Document{
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"},
},