Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
assert_str_eq
macro for comparing "raw" strings
As discussed in #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 #24 Co-authored-by: Tom Milligan <tom@reinfer.io>
- Loading branch information
1 parent
88cd1be
commit 4c723af
Showing
2 changed files
with
179 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters