@@ -265,22 +265,24 @@ tests =
265
265
,(" W.replaceDirectory \" root/file.ext\" \" /directory/\" == \" /directory/file.ext\" " , test $ W. replaceDirectory " root/file.ext" " /directory/" == " /directory/file.ext" )
266
266
,(" P.replaceDirectory x (P.takeDirectory x) `P.equalFilePath` x" , test $ \ (QFilePathValidP x) -> P. replaceDirectory x (P. takeDirectory x) `P.equalFilePath` x)
267
267
,(" W.replaceDirectory x (W.takeDirectory x) `W.equalFilePath` x" , test $ \ (QFilePathValidW x) -> W. replaceDirectory x (W. takeDirectory x) `W.equalFilePath` x)
268
- ,(" P.combine (P.takeDirectory x) (P.takeFileName x) `P.equalFilePath` x" , test $ \ (QFilePathValidP x) -> P. combine (P. takeDirectory x) (P. takeFileName x) `P.equalFilePath` x)
269
- ,(" W.combine (W.takeDirectory x) (W.takeFileName x) `W.equalFilePath` x" , test $ \ (QFilePathValidW x) -> W. combine (W. takeDirectory x) (W. takeFileName x) `W.equalFilePath` x)
270
- ,(" P.combine \" /\" \" test\" == \" /test\" " , test $ P. combine " /" " test" == " /test" )
271
- ,(" P.combine \" home\" \" bob\" == \" home/bob\" " , test $ P. combine " home" " bob" == " home/bob" )
272
- ,(" P.combine \" x:\" \" foo\" == \" x:/foo\" " , test $ P. combine " x:" " foo" == " x:/foo" )
273
- ,(" W.combine \" C:\\\\ foo\" \" bar\" == \" C:\\\\ foo\\\\ bar\" " , test $ W. combine " C:\\ foo" " bar" == " C:\\ foo\\ bar" )
274
- ,(" W.combine \" home\" \" bob\" == \" home\\\\ bob\" " , test $ W. combine " home" " bob" == " home\\ bob" )
275
- ,(" P.combine \" home\" \" /bob\" == \" /bob\" " , test $ P. combine " home" " /bob" == " /bob" )
276
- ,(" W.combine \" home\" \" C:\\\\ bob\" == \" C:\\\\ bob\" " , test $ W. combine " home" " C:\\ bob" == " C:\\ bob" )
277
- ,(" W.combine \" home\" \" /bob\" == \" /bob\" " , test $ W. combine " home" " /bob" == " /bob" )
278
- ,(" W.combine \" home\" \"\\\\ bob\" == \"\\\\ bob\" " , test $ W. combine " home" " \\ bob" == " \\ bob" )
279
- ,(" W.combine \" C:\\\\ home\" \"\\\\ bob\" == \"\\\\ bob\" " , test $ W. combine " C:\\ home" " \\ bob" == " \\ bob" )
280
- ,(" W.combine \" D:\\\\ foo\" \" C:bar\" == \" C:bar\" " , test $ W. combine " D:\\ foo" " C:bar" == " C:bar" )
281
- ,(" W.combine \" C:\\\\ foo\" \" C:bar\" == \" C:bar\" " , test $ W. combine " C:\\ foo" " C:bar" == " C:bar" )
282
268
,(" \" /directory\" P.</> \" file.ext\" == \" /directory/file.ext\" " , test $ " /directory" P. </> " file.ext" == " /directory/file.ext" )
283
269
,(" \" /directory\" W.</> \" file.ext\" == \" /directory\\\\ file.ext\" " , test $ " /directory" W. </> " file.ext" == " /directory\\ file.ext" )
270
+ ,(" \" directory\" P.</> \" /file.ext\" == \" /file.ext\" " , test $ " directory" P. </> " /file.ext" == " /file.ext" )
271
+ ,(" \" directory\" W.</> \" /file.ext\" == \" /file.ext\" " , test $ " directory" W. </> " /file.ext" == " /file.ext" )
272
+ ,(" (P.takeDirectory x P.</> P.takeFileName x) `P.equalFilePath` x" , test $ \ (QFilePathValidP x) -> (P. takeDirectory x P. </> P. takeFileName x) `P.equalFilePath` x)
273
+ ,(" (W.takeDirectory x W.</> W.takeFileName x) `W.equalFilePath` x" , test $ \ (QFilePathValidW x) -> (W. takeDirectory x W. </> W. takeFileName x) `W.equalFilePath` x)
274
+ ,(" \" /\" P.</> \" test\" == \" /test\" " , test $ " /" P. </> " test" == " /test" )
275
+ ,(" \" home\" P.</> \" bob\" == \" home/bob\" " , test $ " home" P. </> " bob" == " home/bob" )
276
+ ,(" \" x:\" P.</> \" foo\" == \" x:/foo\" " , test $ " x:" P. </> " foo" == " x:/foo" )
277
+ ,(" \" C:\\\\ foo\" W.</> \" bar\" == \" C:\\\\ foo\\\\ bar\" " , test $ " C:\\ foo" W. </> " bar" == " C:\\ foo\\ bar" )
278
+ ,(" \" home\" W.</> \" bob\" == \" home\\\\ bob\" " , test $ " home" W. </> " bob" == " home\\ bob" )
279
+ ,(" \" home\" P.</> \" /bob\" == \" /bob\" " , test $ " home" P. </> " /bob" == " /bob" )
280
+ ,(" \" home\" W.</> \" C:\\\\ bob\" == \" C:\\\\ bob\" " , test $ " home" W. </> " C:\\ bob" == " C:\\ bob" )
281
+ ,(" \" home\" W.</> \" /bob\" == \" /bob\" " , test $ " home" W. </> " /bob" == " /bob" )
282
+ ,(" \" home\" W.</> \"\\\\ bob\" == \"\\\\ bob\" " , test $ " home" W. </> " \\ bob" == " \\ bob" )
283
+ ,(" \" C:\\\\ home\" W.</> \"\\\\ bob\" == \"\\\\ bob\" " , test $ " C:\\ home" W. </> " \\ bob" == " \\ bob" )
284
+ ,(" \" D:\\\\ foo\" W.</> \" C:bar\" == \" C:bar\" " , test $ " D:\\ foo" W. </> " C:bar" == " C:bar" )
285
+ ,(" \" C:\\\\ foo\" W.</> \" C:bar\" == \" C:bar\" " , test $ " C:\\ foo" W. </> " C:bar" == " C:bar" )
284
286
,(" P.splitPath \" /directory/file.ext\" == [\" /\" , \" directory/\" , \" file.ext\" ]" , test $ P. splitPath " /directory/file.ext" == [" /" , " directory/" , " file.ext" ])
285
287
,(" W.splitPath \" /directory/file.ext\" == [\" /\" , \" directory/\" , \" file.ext\" ]" , test $ W. splitPath " /directory/file.ext" == [" /" , " directory/" , " file.ext" ])
286
288
,(" concat (P.splitPath x) == x" , test $ \ (QFilePath x) -> concat (P. splitPath x) == x)
0 commit comments