You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
For the time being, you can use something like the manual implementation of what you want here. The diff crate also has some examples that do more advanced things.
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:
we get:
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.
The text was updated successfully, but these errors were encountered: