@@ -108,6 +108,18 @@ tests =
108
108
,(" W.hasExtension \" /directory/path\" == False" , property $ W. hasExtension " /directory/path" == False )
109
109
,(" null (P.takeExtension x) == not (P.hasExtension x)" , property $ \ (QFilePath x) -> null (P. takeExtension x) == not (P. hasExtension x))
110
110
,(" null (W.takeExtension x) == not (W.hasExtension x)" , property $ \ (QFilePath x) -> null (W. takeExtension x) == not (W. hasExtension x))
111
+ ,(" \" png\" `P.isExtensionOf` \" /directory/file.png\" == True" , property $ " png" `P.isExtensionOf` " /directory/file.png" == True )
112
+ ,(" \" png\" `W.isExtensionOf` \" /directory/file.png\" == True" , property $ " png" `W.isExtensionOf` " /directory/file.png" == True )
113
+ ,(" \" .png\" `P.isExtensionOf` \" /directory/file.png\" == True" , property $ " .png" `P.isExtensionOf` " /directory/file.png" == True )
114
+ ,(" \" .png\" `W.isExtensionOf` \" /directory/file.png\" == True" , property $ " .png" `W.isExtensionOf` " /directory/file.png" == True )
115
+ ,(" \" .tar.gz\" `P.isExtensionOf` \" bar/foo.tar.gz\" == True" , property $ " .tar.gz" `P.isExtensionOf` " bar/foo.tar.gz" == True )
116
+ ,(" \" .tar.gz\" `W.isExtensionOf` \" bar/foo.tar.gz\" == True" , property $ " .tar.gz" `W.isExtensionOf` " bar/foo.tar.gz" == True )
117
+ ,(" \" ar.gz\" `P.isExtensionOf` \" bar/foo.tar.gz\" == False" , property $ " ar.gz" `P.isExtensionOf` " bar/foo.tar.gz" == False )
118
+ ,(" \" ar.gz\" `W.isExtensionOf` \" bar/foo.tar.gz\" == False" , property $ " ar.gz" `W.isExtensionOf` " bar/foo.tar.gz" == False )
119
+ ,(" \" png\" `P.isExtensionOf` \" /directory/file.png.jpg\" == False" , property $ " png" `P.isExtensionOf` " /directory/file.png.jpg" == False )
120
+ ,(" \" png\" `W.isExtensionOf` \" /directory/file.png.jpg\" == False" , property $ " png" `W.isExtensionOf` " /directory/file.png.jpg" == False )
121
+ ,(" \" csv/table.csv\" `P.isExtensionOf` \" /data/csv/table.csv\" == False" , property $ " csv/table.csv" `P.isExtensionOf` " /data/csv/table.csv" == False )
122
+ ,(" \" csv/table.csv\" `W.isExtensionOf` \" /data/csv/table.csv\" == False" , property $ " csv/table.csv" `W.isExtensionOf` " /data/csv/table.csv" == False )
111
123
,(" P.stripExtension \" hs.o\" \" foo.x.hs.o\" == Just \" foo.x\" " , property $ P. stripExtension " hs.o" " foo.x.hs.o" == Just " foo.x" )
112
124
,(" W.stripExtension \" hs.o\" \" foo.x.hs.o\" == Just \" foo.x\" " , property $ W. stripExtension " hs.o" " foo.x.hs.o" == Just " foo.x" )
113
125
,(" P.stripExtension \" hi.o\" \" foo.x.hs.o\" == Nothing" , property $ P. stripExtension " hi.o" " foo.x.hs.o" == Nothing )
0 commit comments