iroh_test

Macro assert_eq_hex

Source
macro_rules! assert_eq_hex {
    ($a:expr, $b:expr) => { ... };
    ($a:expr, $b:expr, $hint:expr) => { ... };
}
Expand description

This is a macro to assert that two byte slices are equal.

It is like assert_eq!, but it will print a nicely formatted hexdump of the two slices if they are not equal. This makes it much easier to track down a difference in a large byte slice.