diff --git a/model/folder_test.go b/model/folder_test.go index 30a810ff3..4f38973bb 100644 --- a/model/folder_test.go +++ b/model/folder_test.go @@ -77,7 +77,7 @@ var _ = Describe("Folder", func() { Describe("NewFolder", func() { It("should create a new SubFolder with the correct attributes", func() { - // The scanner walks an fs.FS, so folder paths always use forward slashes + // The scanner passes fs.FS paths here, which use forward slashes on every OS. folderPath := "rock/metal" folder := model.NewFolder(lib, folderPath) diff --git a/model/mediafile_test.go b/model/mediafile_test.go index 392b940b8..fc35e9fde 100644 --- a/model/mediafile_test.go +++ b/model/mediafile_test.go @@ -484,7 +484,7 @@ var _ = Describe("MediaFiles", func() { false, "#EXTM3U\n#PLAYLIST:Multi Track\n#EXTINF:120,Artist A - Song One\na/song1.mp3\n#EXTINF:241,Artist B - Song Two\nb/song2.mp3\n#EXTINF:90,Artist with Ümläuts - Song with \"quotes\" & ampersands\nspecial/file.mp3\n", ), - // AbsolutePath joins with the OS separator + // AbsolutePath joins with the OS separator. Entry("absolute paths", true, filepath.FromSlash("#EXTM3U\n#PLAYLIST:Multi Track\n#EXTINF:120,Artist A - Song One\n/music/a/song1.mp3\n#EXTINF:241,Artist B - Song Two\n/music/b/song2.mp3\n#EXTINF:90,Artist with Ümläuts - Song with \"quotes\" & ampersands\n/música/special/file.mp3\n"),