diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_node/zlib_test.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit_node/zlib_test.ts b/tests/unit_node/zlib_test.ts index 94b1c63ca..fa09bd687 100644 --- a/tests/unit_node/zlib_test.ts +++ b/tests/unit_node/zlib_test.ts @@ -171,3 +171,13 @@ Deno.test("brotli large chunk size", async () => { ); assertEquals(output.length, input.length); }); + +Deno.test("brotli decompress flush restore size", async () => { + const input = new Uint8Array(1000000); + const output = await buffer( + Readable.from([input]) + .pipe(createBrotliCompress()) + .pipe(createBrotliDecompress()), + ); + assertEquals(output.length, input.length); +}); |