File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ pBSRechunk t cs = fromStrict t == rechunkBS t cs
135
135
-- are chunked.
136
136
pBSLazyRechunked :: B. ByteString
137
137
-> NonEmptyList ChunkSize -> NonEmptyList ChunkSize -> Bool
138
- pBSLazyRechunked t cs1 cs2 = hash (rechunkBS t cs1) == hash (rechunkBS t cs2)
138
+ pBSLazyRechunked t cs1 cs2 =
139
+ hash (rechunkBS t cs1) == hash (rechunkBS t cs2)
139
140
140
141
-- This wrapper is required by 'runST'.
141
142
data ByteArray = BA { unBA :: ByteArray # }
@@ -239,6 +240,11 @@ properties =
239
240
#endif
240
241
, testProperty " bytestring/rechunk" pBSRechunk
241
242
, testProperty " bytestring/rechunked" pBSLazyRechunked
243
+ , testProperty " bytestring/rechunked/big" $ forAll (do
244
+ x <- getSize
245
+ y <- chooseInt (x, x* 1000 )
246
+ resize y arbitrary
247
+ ) $ \ x -> pBSLazyRechunked x
242
248
]
243
249
, testGroup " generics"
244
250
[
You can’t perform that action at this time.
0 commit comments