Add another doctest to splitDirectories

This commit is contained in:
Julian Ospald 2020-01-20 19:46:19 +01:00
parent 607e67378c
commit d0beba227a
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -486,6 +486,8 @@ joinPath = foldr (</>) BS.empty
-- --
-- >>> splitDirectories "/path/to/file.txt" -- >>> splitDirectories "/path/to/file.txt"
-- ["/","path","to","file.txt"] -- ["/","path","to","file.txt"]
-- >>> splitDirectories "path/to/file.txt"
-- ["path","to","file.txt"]
-- >>> splitDirectories "" -- >>> splitDirectories ""
-- [] -- []
splitDirectories :: RawFilePath -> [RawFilePath] splitDirectories :: RawFilePath -> [RawFilePath]