blaze-binary icon indicating copy to clipboard operation
blaze-binary copied to clipboard

Test resistance of decoder to random changes

Open meiersi opened this issue 13 years ago • 0 comments

As described in the README, a Decoder should never throw an exception. All errors should be reported via a Left message. We can test this by randomly exchanging a few (just one?) bytes of a correctly encoded input, truncating it, or decoding with the wrong type. It may however be very well the case that a decode nevertheless succeeds.

meiersi avatar May 12 '12 21:05 meiersi