rust-pretty-assertions
rust-pretty-assertions copied to clipboard
Print less context?
Is there a way to get pretty_assertions to print less context, e.g., just a few lines before and after each difference?
Apologies if this has been asked before. Also, this an absolutely fantastic crate.
I also stumbled on pretty_assertions being not so pretty for long strings. Just to leave some context here for other people looking for this feature:
similar_asserts::assert_eq and snapbox::assert_eq both limit the diff context by default.