diff options
author | pommicket <pommicket@gmail.com> | 2023-09-05 22:10:51 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-09-05 22:10:51 -0400 |
commit | 40b2894ae4ade5461469aaa337862a586d16eac6 (patch) | |
tree | 4180e2072f9e9a6299f0ae2f7abcf4c1fa538d46 /README.md | |
parent | 6d9d77638172a50c1fa349f8f81ed5a951e4716b (diff) |
better tests, caught some bugs
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -20,6 +20,7 @@ Also it has tiny code size (e.g. >8 times smaller `.wasm.gz` size compared to - Checking block CRCs (increases code complexity and there’s already Adler32 checksums for IDAT chunks) - ancillary chunks (tEXt, iCCP, etc.) +- correctly handling non-indexed image with tRNS chunk (who uses this?) ## Example usage @@ -61,6 +62,12 @@ A `pre-commit` git hook is provided to run `cargo fmt` and `cargo clippy`. You c ln -s ../../pre-commit .git/hooks/ ``` +## Testing + +All PNG files in the `test` directory are tested by `cargo t` (NOTE: `cargo test` +doesn‘t log as much progress because there’s no way of dynamically generating +tests and no way of enabling `--nocapture` by default *grumble grumble*). + ## Performance Benchmarks (see `cargo bench`) show that `tiny-png` is about 50% slower than `png` @@ -81,4 +88,3 @@ for large images, but faster than `png` for small images. > AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT > OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -(Note: all the test PNG images are either in the U.S. public domain or CC0-licensed.) |