Asserts two values are equal using PartialEq, allowing for different
types to be compared. Automatically unwraps Result and Option, failing
the test if the value is Err or None. This is useful for removing
boilerplate .unwrap().unwrap() calls in tests.
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.
Asserts that the value is equal to the contents of the file. Works
for anything that implements AsRef<u8>. This is useful for testing
against large fixtures. The file is read into memory and compared
against the value.
Asserts two values are not equal using PartialEq, allowing for
different types to be compared. Automatically unwraps Result and Option,
failing the test if the value is Err or None. This is useful for removing
boilerplate .unwrap().unwrap() calls in tests.