From: Cameron Moore Date: Fri, 7 Sep 2018 01:52:20 +0000 (-0500) Subject: hugofs: Fix filepath issue in test X-Git-Tag: v0.49~40 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d970327d7b994b495ef3bb468c3e0599b0deef5a;p=brevno-suite%2Fhugo hugofs: Fix filepath issue in test --- diff --git a/hugofs/language_fs_test.go b/hugofs/language_fs_test.go index c86d5158..52e8dc9d 100644 --- a/hugofs/language_fs_test.go +++ b/hugofs/language_fs_test.go @@ -50,10 +50,9 @@ func TestLanguagFs(t *testing.T) { assert.Equal("page.sv.md", lfi.virtualName) assert.Equal("__hugofs_sv_page.md", lfi.Name()) assert.Equal("page.md", lfi.RealName()) - assert.Equal("/my/base", lfi.BaseDir()) + assert.Equal(filepath.FromSlash("/my/base"), lfi.BaseDir()) assert.Equal("sv", lfi.Lang()) assert.Equal("page", lfi.TranslationBaseName()) - } // Issue 4559