-
-
Notifications
You must be signed in to change notification settings - Fork 545
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
Report mismatch segment for strings of unequal lengths #915
Report mismatch segment for strings of unequal lengths #915
Conversation
Are you still working on this? If so, please prefix it it with |
I think I am done with the first proposition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only minor comments. Check the legend for the meaning of the emojis.
int indexOfMismatch = subject.IndexOfFirstMismatch(expected, comparisonMode); | ||
|
||
// If there is no difference it means that subject and expected have common prefix | ||
// and the first difference is after just that prefix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ What do you mean with prefix here?
@krajek can we merge this? |
Yes, please. Thanks for the reviews. |
Awesome. Thanks man. |
Proposal to fix #907.
I used the same mechanism to display differences as in part of the code that handles strings with equal lengths, with few adjustments.
BTW Possible follow-ups: