From: Bjørn Erik Pedersen Date: Thu, 28 Dec 2017 12:54:23 +0000 (+0100) Subject: source: Fix test on Windows X-Git-Tag: v0.32~12 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7e76a6fd3bc78363ed31d712c63e6b17734797d7;p=brevno-suite%2Fhugo source: Fix test on Windows --- diff --git a/source/fileInfo_test.go b/source/fileInfo_test.go index 1d7c86ec..8ce8c16e 100644 --- a/source/fileInfo_test.go +++ b/source/fileInfo_test.go @@ -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())