Commit Graph

4 Commits

Author SHA1 Message Date
0b2408bda1 Fix test: panic when decoded data is wrong size
This started life as a dev utility so I was only printing the message.
Now that it's a `#[test]`, I'll have it panic on the error path.
2025-10-13 08:33:29 -05:00
a6f18e5ea9 Rename codec.rs test function, use new err enum
I'm trying to minimize the number of panics even in test code. Some are
going to stay because I'm lazy and it makes no difference for a test.
2025-10-13 08:03:43 -05:00
7ba2e7760b Add an error enum to test/codec.rs 2025-10-13 08:02:38 -05:00
e31aa5decb Move main.rs to a test, drop dep on png crate
The codec library doesn't use any external dependencies. The PNG crate
is only to load some source material for testing the codec. Turning the
test driver into a real test lets me turn the PNG dependency into a
dev-dependency.
2025-10-12 21:18:32 -05:00