-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Description
🚀 Feature Proposal
When using toEqual to compare strings (or other iterable structures), when there is a difference between the strings, indicate where the first difference occurred and/or give additional details about the difference.
Motivation
While testing the output of a currency formatting function, I was bamboozled by the following output:

As it turns out, the spaces in the strings are different (breaking x20 vs non-breaking space xA0).
Example
Expected value to equal:
"1 234,57 $"
Received:
"1 234,57 $"
First difference occurred at index 1 : " " does not equal " "gustavopch, anttikekki, ichyr-codete, ndelangen, tombertrand and 4 more
Metadata
Metadata
Assignees
Labels
No labels