Skip to content

Conversation

fintelia
Copy link
Contributor

@fintelia fintelia commented Jul 20, 2025

This PR adds tests of the various flush kinds to ensure that all backends implement them consistently. The cases are carefully constructed so that even quite different backend implementations are likely to produce the expected output. In particular, it counts on the encoder detecting when the input is/isn't compressible and writing either compressed or stored blocks accordingly.

Tests pass for me with the zlib, zlib-ng, zlib-rs and cloudflare_zlib backends. The miniz_oxide backend requires Frommi/miniz_oxide#179 as otherwise it treats partial flushes as "no flush" (!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant