source: Fix test on Windows

This commit is contained in:
Bjørn Erik Pedersen 2017-12-28 13:54:23 +01:00
parent 1b0780dbeb
commit 7e76a6fd3b
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -30,7 +30,7 @@ func TestFileInfo(t *testing.T) {
filename string
assert func(f *FileInfo)
}{
{"/a/", filepath.FromSlash("/a/b/page.md"), func(f *FileInfo) {
{filepath.FromSlash("/a/"), filepath.FromSlash("/a/b/page.md"), func(f *FileInfo) {
assert.Equal(filepath.FromSlash("/a/b/page.md"), f.Filename())
assert.Equal(filepath.FromSlash("b/"), f.Dir())
assert.Equal(filepath.FromSlash("b/page.md"), f.Path())