hugofs: Fix filepath issue in test
authorCameron Moore <moorereason@gmail.com>
Fri, 7 Sep 2018 01:52:20 +0000 (20:52 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 7 Sep 2018 06:25:51 +0000 (08:25 +0200)
hugofs/language_fs_test.go

index c86d5158c00d57fbf5a01401ccb3e89a47a0360e..52e8dc9de7450e8ed263740a2b454208b61a6238 100644 (file)
@@ -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