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

Add assert_str_eq macro for comparing "raw" strings #88

Merged
merged 1 commit into from Feb 1, 2022

Commits on Feb 1, 2022

  1. Add assert_str_eq macro for comparing "raw" strings

    As discussed in rust-pretty-assertions#24, pretty_assertion's `assert_eq` will escape line
    breaks in multi-line strings, making diffs for them much harder to
    read.
    
    This commit introduces another variant, `assert_str_eq`, and the
    associated `StrComparison`, which compares the raw strings, where
    the newlines are not escaped.
    
    Fixes rust-pretty-assertions#24
    
    Co-authored-by: Tom Milligan <tom@reinfer.io>
    x3ro and tommilligan committed Feb 1, 2022
    Copy the full SHA
    5271543 View commit details
    Browse the repository at this point in the history