Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print less context? #114

Open
smoelius opened this issue Apr 26, 2023 · 1 comment
Open

Print less context? #114

smoelius opened this issue Apr 26, 2023 · 1 comment

Comments

@smoelius
Copy link

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.

@not-my-profile
Copy link

not-my-profile commented Aug 18, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants