rs-diff-assert
Better test assertion diffs with colored inline comparisons
Installation
[]
= "0.1.7"
Usage
use assert_eq_diff;
Output on failure:
hello
- world
+ everyone
foo
Programmatic use
use diff_strings;
let diff = diff_strings;
println!;
API
| Function / Macro | Description |
|---|---|
assert_eq_diff!(left, right) |
Assert equality with colored diff on failure |
assert_eq_diff!(left, right, msg, ..) |
With custom failure message |
diff_strings(left, right) |
Get colored diff of two strings |
diff_strings_no_color(left, right) |
Get diff without ANSI codes |
diff_debug(left, right) |
Diff Debug output of two values |
Development
License
MIT