Skip to content

Commit

Permalink
haskell#24, turn back on the splitDirectories test
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmitchell committed Oct 26, 2014
1 parent e183b40 commit 72543cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions System/FilePath/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,8 @@ splitPath x = [drive | drive /= ""] ++ f path
-- > splitDirectories "test/file" == ["test","file"]
-- > splitDirectories "/test/file" == ["/","test","file"]
-- > Windows: splitDirectories "C:\\test\\file" == ["C:\\", "test", "file"]
-- > Posix: Valid x => joinPath (splitDirectories x) `equalFilePath` x
-- > splitDirectories "" == []
-- > Valid x => joinPath (splitDirectories x) `equalFilePath` x
-- > splitDirectories "" == []
splitDirectories :: FilePath -> [FilePath]
splitDirectories = map dropTrailingPathSeparator . splitPath

Expand Down

0 comments on commit 72543cc

Please sign in to comment.