We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14dced commit bdbafe0Copy full SHA for bdbafe0
1 file changed
zlib/test/Test.hs
@@ -288,12 +288,12 @@ test_exception = ioProperty $ do
288
Right{} -> counterexample "expected exception" False
289
290
test_compress_large_chunk :: Property
291
-test_compress_large_chunk = GZip.decompress (GZip.compress xs) === xs
+test_compress_large_chunk =
292
+ GZip.decompress (GZip.compress (BL.replicate len 0)) === BL.replicate len 0
293
where
294
len = case finiteBitSize (0 :: Int) of
295
64 -> (1 `shiftL` 32) + 1
296
_ -> 0 -- ignore it
- xs = BL.fromStrict $ BS.replicate len 0
297
298
toStrict :: BL.ByteString -> BS.ByteString
299
#if MIN_VERSION_bytestring(0,10,0)
0 commit comments