shithub: hugo

Download patch

ref: 950d9f55a53705b332a919df1a2f45307019d2fd
parent: de670ced86e6df76278a19f19068bbeb46cc5d2f
author: Ruben <[email protected]>
date: Fri Nov 29 03:22:44 EST 2013

Testcases for multilevel structure were wrong

--- a/source/filesystem_unix_test.go
+++ b/source/filesystem_unix_test.go
@@ -9,7 +9,7 @@
 var platformPaths = []TestPath{
 	{"foobar", "foobar", "aaa", "", ""},
 	{"b/1file", "1file", "aaa", "b", "b/"},
-	{"c/d/2file", "2file", "aaa", "d", "c/d/"},
-	{"/base/e/f/3file", "3file", "aaa", "f", "e/f/"},
+	{"c/d/2file", "2file", "aaa", "c", "c/d/"},
+	{"/base/e/f/3file", "3file", "aaa", "e", "e/f/"},
 	{"section/foo.rss", "foo.rss", "aaa", "section", "section/"},
 }
--- a/source/filesystem_windows_test.go
+++ b/source/filesystem_windows_test.go
@@ -9,7 +9,7 @@
 var platformPaths = []TestPath{
 	{"foobar", "foobar", "aaa", "", ""},
 	{"b\\1file", "1file", "aaa", "b", "b/"},
-	{"c\\d\\2file", "2file", "aaa", "d", "c/d/"},
-	{"C:\\foo\\e\\f\\3file", "3file", "aaa", "f", "e/f/"}, // note volume case is equal to platformBase
+	{"c\\d\\2file", "2file", "aaa", "c", "c/d/"},
+	{"C:\\foo\\e\\f\\3file", "3file", "aaa", "e", "e/f/"}, // note volume case is equal to platformBase
 	{"section\\foo.rss", "foo.rss", "aaa", "section", "section/"},
 }