pub fn equal_bytes<R, E>(a: &R, b: &E)
Expand description
More specific than assert::equal, must be for AsRef<u8>. On failure, the output message will show the hex values of the bytes for easier debugging of longer byte arrays.
ยงExample
use common_testing::assert;
#[test]
fn test_1() {
let result = vec![0x01, 0x0E, 0xF3];
assert::equal_bytes(&result, &[0x01, 0x0E, 0xF3]);
}