fix test to work on Windows
This commit is contained in:
parent
5df3db9027
commit
b9147b4012
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ dirFromViewedFile = joinPath . drop 1 . sep [] ""
|
||||||
|
|
||||||
prop_viewedFile_roundtrips :: FilePath -> Bool
|
prop_viewedFile_roundtrips :: FilePath -> Bool
|
||||||
prop_viewedFile_roundtrips f
|
prop_viewedFile_roundtrips f
|
||||||
| isAbsolute f = True -- Only relative paths are encoded.
|
-- Relative filenames wanted, not directories.
|
||||||
| any (isPathSeparator) (end f) = True -- Filenames wanted, not directories.
|
| any (isPathSeparator) (end f ++ beginning f) = True
|
||||||
| otherwise = dir == dirFromViewedFile (viewedFileFromReference f)
|
| otherwise = dir == dirFromViewedFile (viewedFileFromReference f)
|
||||||
where
|
where
|
||||||
dir = joinPath $ beginning $ splitDirectories f
|
dir = joinPath $ beginning $ splitDirectories f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue