@@ -458,6 +458,8 @@ tests =
458
458
,(" AFP_W.splitFileName (\" c:\" ) == ((\" c:\" ), (\"\" ))" , property $ AFP_W. splitFileName (" c:" ) == ((" c:" ), (" " )))
459
459
,(" W.splitFileName \"\\\\\\\\ ?\\\\ A:\\\\ fred\" == (\"\\\\\\\\ ?\\\\ A:\\\\\" , \" fred\" )" , property $ W. splitFileName " \\\\ ?\\ A:\\ fred" == (" \\\\ ?\\ A:\\ " , " fred" ))
460
460
,(" AFP_W.splitFileName (\"\\\\\\\\ ?\\\\ A:\\\\ fred\" ) == ((\"\\\\\\\\ ?\\\\ A:\\\\\" ), (\" fred\" ))" , property $ AFP_W. splitFileName (" \\\\ ?\\ A:\\ fred" ) == ((" \\\\ ?\\ A:\\ " ), (" fred" )))
461
+ ,(" W.splitFileName \"\\\\\\\\ ?\\\\ A:\" == (\"\\\\\\\\ ?\\\\ A:\" , \"\" )" , property $ W. splitFileName " \\\\ ?\\ A:" == (" \\\\ ?\\ A:" , " " ))
462
+ ,(" AFP_W.splitFileName (\"\\\\\\\\ ?\\\\ A:\" ) == ((\"\\\\\\\\ ?\\\\ A:\" ), (\"\" ))" , property $ AFP_W. splitFileName (" \\\\ ?\\ A:" ) == ((" \\\\ ?\\ A:" ), (" " )))
461
463
,(" P.replaceFileName \" /directory/other.txt\" \" file.ext\" == \" /directory/file.ext\" " , property $ P. replaceFileName " /directory/other.txt" " file.ext" == " /directory/file.ext" )
462
464
,(" W.replaceFileName \" /directory/other.txt\" \" file.ext\" == \" /directory/file.ext\" " , property $ W. replaceFileName " /directory/other.txt" " file.ext" == " /directory/file.ext" )
463
465
,(" AFP_P.replaceFileName (\" /directory/other.txt\" ) (\" file.ext\" ) == (\" /directory/file.ext\" )" , property $ AFP_P. replaceFileName (" /directory/other.txt" ) (" file.ext" ) == (" /directory/file.ext" ))
@@ -474,6 +476,10 @@ tests =
474
476
,(" W.dropFileName x == fst (W.splitFileName x)" , property $ \ (QFilePath x) -> W. dropFileName x == fst (W. splitFileName x))
475
477
,(" AFP_P.dropFileName x == fst (AFP_P.splitFileName x)" , property $ \ (QFilePathAFP_P x) -> AFP_P. dropFileName x == fst (AFP_P. splitFileName x))
476
478
,(" AFP_W.dropFileName x == fst (AFP_W.splitFileName x)" , property $ \ (QFilePathAFP_W x) -> AFP_W. dropFileName x == fst (AFP_W. splitFileName x))
479
+ ,(" isPrefixOf (P.takeDrive x) (P.dropFileName x)" , property $ \ (QFilePath x) -> isPrefixOf (P. takeDrive x) (P. dropFileName x))
480
+ ,(" isPrefixOf (W.takeDrive x) (W.dropFileName x)" , property $ \ (QFilePath x) -> isPrefixOf (W. takeDrive x) (W. dropFileName x))
481
+ ,(" (\\ (getPosixString -> x) (getPosixString -> y) -> SBS.isPrefixOf x y) (AFP_P.takeDrive x) (AFP_P.dropFileName x)" , property $ \ (QFilePathAFP_P x) -> (\ (getPosixString -> x) (getPosixString -> y) -> SBS. isPrefixOf x y) (AFP_P. takeDrive x) (AFP_P. dropFileName x))
482
+ ,(" (\\ (getWindowsString -> x) (getWindowsString -> y) -> SBS16.isPrefixOf x y) (AFP_W.takeDrive x) (AFP_W.dropFileName x)" , property $ \ (QFilePathAFP_W x) -> (\ (getWindowsString -> x) (getWindowsString -> y) -> SBS16. isPrefixOf x y) (AFP_W. takeDrive x) (AFP_W. dropFileName x))
477
483
,(" P.takeFileName \" /directory/file.ext\" == \" file.ext\" " , property $ P. takeFileName " /directory/file.ext" == " file.ext" )
478
484
,(" W.takeFileName \" /directory/file.ext\" == \" file.ext\" " , property $ W. takeFileName " /directory/file.ext" == " file.ext" )
479
485
,(" AFP_P.takeFileName (\" /directory/file.ext\" ) == (\" file.ext\" )" , property $ AFP_P. takeFileName (" /directory/file.ext" ) == (" file.ext" ))
0 commit comments