Skip to content

Commit

Permalink
Limit number of tests in large quick check properties
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyaov committed Aug 18, 2023
1 parent 4997b47 commit 041be85
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/Streamly/Test/Data/Serialize.hs
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,20 @@ testCases = do
(8 + 3 * 8 + 6 * 8)
([[1], [1, 2], [1, 2, 3]] :: [[Int]])

prop "CustomDatatype"
limitQC
$ prop "CustomDatatype"
$ \(x :: CustomDatatype) -> roundtrip x
prop "[CustomDatatype]"

limitQC
$ prop "[CustomDatatype]"
$ \(x :: [CustomDatatype]) -> roundtrip x

prop "BinTree" $ \(x :: BinTree Int) -> roundtrip x
limitQC
$ prop "BinTree" $ \(x :: BinTree Int) -> roundtrip x

where

limitQC = modifyMaxSize (const 50)

--------------------------------------------------------------------------------
-- Main function
Expand Down

0 comments on commit 041be85

Please sign in to comment.