@@ -384,6 +384,13 @@ tests =
384
384
,(" P.makeRelative \" /file/test\" \" /file/test/fred\" == \" fred\" " , property $ P. makeRelative " /file/test" " /file/test/fred" == " fred" )
385
385
,(" P.makeRelative \" /file/test\" \" /file/test/fred/\" == \" fred/\" " , property $ P. makeRelative " /file/test" " /file/test/fred/" == " fred/" )
386
386
,(" P.makeRelative \" some/path\" \" some/path/a/b/c\" == \" a/b/c\" " , property $ P. makeRelative " some/path" " some/path/a/b/c" == " a/b/c" )
387
+ ,(" P.stripFilePath \" app\" \" app/File.hs\" == Just \" File.hs\" " , property $ P. stripFilePath " app" " app/File.hs" == Just " File.hs" )
388
+ ,(" P.stripFilePath \" src\" \" app/File.hs\" == Nothing" , property $ P. stripFilePath " src" " app/File.hs" == Nothing )
389
+ ,(" P.stripFilePath \" src\" \" src-dir/File.hs\" == Nothing" , property $ P. stripFilePath " src" " src-dir/File.hs" == Nothing )
390
+ ,(" P.stripFilePath \" .\" \" src/File.hs\" == Just \" src/File.hs\" " , property $ P. stripFilePath " ." " src/File.hs" == Just " src/File.hs" )
391
+ ,(" P.stripFilePath \" app/\" \" ./app/Lib/File.hs\" == Just \" Lib/File.hs\" " , property $ P. stripFilePath " app/" " ./app/Lib/File.hs" == Just " Lib/File.hs" )
392
+ ,(" P.stripFilePath \" /app/\" \" ./app/Lib/File.hs\" == Nothing" , property $ P. stripFilePath " /app/" " ./app/Lib/File.hs" == Nothing )
393
+ ,(" P.stripFilePath \" /app\" \" /app/Lib/File.hs\" == Just \" Lib/File.hs\" " , property $ P. stripFilePath " /app" " /app/Lib/File.hs" == Just " Lib/File.hs" )
387
394
,(" P.normalise \" /file/\\\\ test////\" == \" /file/\\\\ test/\" " , property $ P. normalise " /file/\\ test////" == " /file/\\ test/" )
388
395
,(" P.normalise \" /file/./test\" == \" /file/test\" " , property $ P. normalise " /file/./test" == " /file/test" )
389
396
,(" P.normalise \" /test/file/../bob/fred/\" == \" /test/file/../bob/fred/\" " , property $ P. normalise " /test/file/../bob/fred/" == " /test/file/../bob/fred/" )
0 commit comments