on master help sign in
Limit number of tests in large quick check properties
commit041be85bb8c2505cd15895edb9436635af3ad52c authorAdithya Kumar <adithya@composewell.com> dateFri 18 Aug 2023, 11:21 (3 years ago) parent4997b47
1 file changed+11−3
test/Streamly/Test/Data/Serialize.hs+11−3
test/Streamly/Test/Data/Serialize.hs+11−3
@@ -99,12 +99,20 @@ testCases = do
9999 (8 + 3 * 8 + 6 * 8)
100100 ([[1], [1, 2], [1, 2, 3]] :: [[Int]])
101101
102− prop "CustomDatatype"
102+ limitQC
103+ $ prop "CustomDatatype"
103104 $ \(x :: CustomDatatype) -> roundtrip x
104− prop "[CustomDatatype]"
105+
106+ limitQC
107+ $ prop "[CustomDatatype]"
105108 $ \(x :: [CustomDatatype]) -> roundtrip x
106109
107− prop "BinTree" $ \(x :: BinTree Int) -> roundtrip x
110+ limitQC
111+ $ prop "BinTree" $ \(x :: BinTree Int) -> roundtrip x
112+
113+ where
114+
115+ limitQC = modifyMaxSize (const 50)
108116
109117--------------------------------------------------------------------------------
110118-- Main function