-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Hello.
It would be nice to show the differences between the left and right value more visually, with a diff-like format and/or with colors.
For instance, with the following code:
assert_eq!("my very very very very very very very very long sentence",
"my very very very very very very very very long snetence");we get:
thread 'test' panicked at 'assertion failed: `(left == right)` (left: `"my very very very very very very very very long sentence"`, right: `"my very very very very very very very very long snetence"`), tests/lib.rs:10
It is not easy to spot immediately the difference between the expected and the actual values.
Showing this with colors would greatly reduce the amount of time needed to spot the difference.
Thanks.
Metadata
Metadata
Assignees
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.