summaryrefslogtreecommitdiffstats
path: root/source/filesystem_windows_test.go
diff options
context:
space:
mode:
authorNoah Campbell <noahcampbell@gmail.com>2013-09-20 17:03:43 -0700
committerNoah Campbell <noahcampbell@gmail.com>2013-09-20 17:03:43 -0700
commit52e8c7a0ac76f4aa1fff8ff30a6d5074bd459347 (patch)
treefcabd15f6b496589edcf56be200f865177606a70 /source/filesystem_windows_test.go
parent784077da4dcc3476f61bbf99c5f873b71694dd64 (diff)
Section is determined by the source, not the url
This change allows for top level html content to exists.
Diffstat (limited to 'source/filesystem_windows_test.go')
-rw-r--r--source/filesystem_windows_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/filesystem_windows_test.go b/source/filesystem_windows_test.go
new file mode 100644
index 000000000..b9ecd5354
--- /dev/null
+++ b/source/filesystem_windows_test.go
@@ -0,0 +1,15 @@
+package source
+
+//
+// NOTE, any changes here need to be reflected in filesystem_linux_test.go
+//
+
+// Note the case of the volume drive. It must be the same in all examples.
+var platformBase = "C:\\foo\\"
+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
+ {"section\\foo.rss", "foo.rss", "aaa", "section", "section/"},
+}