File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
test/Codec/Archive/Tar/Index Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ prop_sorted strings = property $
49
49
where
50
50
_tbl :: StringTable Int
51
51
_tbl@ (StringTable strs offsets ids _ixs) = construct strings
52
- isSorted xs = and (zipWith (<) xs (tail xs))
52
+ isSorted xs = and (zipWith (<) xs (drop 1 xs))
53
53
54
54
prop_finalise_unfinalise :: [BS. ByteString ] -> Property
55
55
prop_finalise_unfinalise strs =
Original file line number Diff line number Diff line change @@ -70,9 +70,10 @@ prop_lookup (ValidPaths paths) (NonEmptyFilePath p) =
70
70
_ -> property False
71
71
where
72
72
index = construct paths
73
- completions = [ head ( FilePath. splitDirectories completion)
73
+ completions = [ hd
74
74
| (path,_) <- paths
75
- , completion <- maybeToList $ stripPrefix (p ++ " /" ) path ]
75
+ , completion <- maybeToList $ stripPrefix (p ++ " /" ) path
76
+ , let hd : _ = FilePath. splitDirectories completion ]
76
77
77
78
prop_toList :: ValidPaths -> Property
78
79
prop_toList (ValidPaths paths) =
You can’t perform that action at this time.
0 commit comments