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 e86740d commit c7a314eCopy full SHA for c7a314e
tests/test_decompressor_decompress.py
@@ -175,3 +175,18 @@ def test_explicit_default_params(self):
175
format=zstd.FORMAT_ZSTD1,
176
)
177
self.assertEqual(dctx.decompress(compressed), b"foo")
178
+
179
+ def test_multiple_frames(self):
180
+ cctx = zstd.ZstdCompressor()
181
+ foo = cctx.compress(b"foo")
182
+ bar = cctx.compress(b"bar")
183
184
+ dctx = zstd.ZstdDecompressor()
185
+ self.assertEqual(dctx.decompress(foo + bar), b"foo")
186
187
+ def test_junk_after_frame(self):
188
189
+ frame = cctx.compress(b"foo")
190
191
192
+ self.assertEqual(dctx.decompress(frame + b"junk"), b"foo")
0 commit comments