[][src]Crate assert_hex

Assert Hex

Writing and testing protocol level libraries requires many tests to be written with respect to protocol sections in hex. This library simplifies the process of viewing the differences between numbers in hex when tests fail.

Usage

Replace assert_eq or assert_ne with assert_eq_hex or assert_ne_hex respectively.

Macros

assert_eq_hex

Asserts that two expressions are equal to each other

assert_ne_hex

Asserts that two expressions are not equal to each other