speed up slow quickcheck test
Only test parsing of ContentIdentifier lists, not the whole log.
This commit is contained in:
parent
c6c5f6336b
commit
1b3d04979e
1 changed files with 4 additions and 2 deletions
|
@ -68,6 +68,8 @@ parseContentIdentifierList = do
|
|||
listparser first (cid:rest)
|
||||
)
|
||||
|
||||
prop_parse_build_contentidentifier_log :: ContentIdentifierLog -> Bool
|
||||
prop_parse_build_contentidentifier_log :: NonEmpty ContentIdentifier -> Bool
|
||||
prop_parse_build_contentidentifier_log l =
|
||||
parseLog (toLazyByteString (buildLog l)) == l
|
||||
let v = A.parseOnly parseContentIdentifierList $ L.toStrict $
|
||||
toLazyByteString $ buildContentIdentifierList l
|
||||
in v == Right l
|
||||
|
|
Loading…
Reference in a new issue