Skip to main content

assert_bytes_equal

Function assert_bytes_equal 

Source
pub fn assert_bytes_equal(input: &[u8], output: &[u8]) -> Result<()>
Expand description

Compare two byte buffers and produce a Error::RoundTripMismatch / Error::RoundTripLengthMismatch when they differ.

Used by the round-trip harness; lives here so both the CLI and any future test crate can call it.