Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
wcampbell0x2a committed Sep 11, 2023
1 parent 6249bfe commit ce2214f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@

display expression using `{:#x?}` format when false assertion causes `panic!()`.

# why
# Why
Writing and testing protocol level libraries requires many tests to be written
with respect to byte level protocol sections in hex. This library simplifies the process
of viewing the differences between these types when tests fail by displaying by using the
`{:#x?}` representation.

# usage
# Usage
*Compiler support: requires rustc 1.39+*
```
$ cargo add assert_hex
```

Replace `assert_eq` or `assert_ne` with `assert_eq_hex` or `assert_ne_hex`
respectively.

Expand Down

0 comments on commit ce2214f

Please sign in to comment.