source: Fix test on Windows
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 28 Dec 2017 12:54:23 +0000 (13:54 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 28 Dec 2017 12:54:23 +0000 (13:54 +0100)
source/fileInfo_test.go

index 1d7c86ec2b7c9181a287effc62eef5f09547b6fd..8ce8c16efbf2241bdeb463022f6cdfa25b7f691b 100644 (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())