rust-pretty-assertions icon indicating copy to clipboard operation
rust-pretty-assertions copied to clipboard

Print less context?

Open smoelius opened this issue 2 years ago • 1 comments

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.

smoelius avatar Apr 26 '23 11:04 smoelius

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.

not-my-profile avatar Aug 18 '23 04:08 not-my-profile