mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 00:57:16 -04:00
source: Fix test on Windows
This commit is contained in:
parent
1b0780dbeb
commit
7e76a6fd3b
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user