Skip to content
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

Tests: improve diffing for values of different types #5455

Merged
merged 5 commits into from
Mar 27, 2024

Conversation

timmywil
Copy link
Member

@timmywil timmywil commented Mar 22, 2024

Summary

3.x version of #5454

Differences are:

  • use diffChars when both expected and actual are strings
  • use diffWords for everything after that

Objects, arrays, and numbers are diffed as before.

Checklist

@timmywil timmywil added the Tests label Mar 22, 2024
@timmywil timmywil added this to the 3.7.2 milestone Mar 22, 2024
@timmywil timmywil requested a review from mgol March 22, 2024 00:34
Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with the same suggestions as in the main PR.

timmywil and others added 2 commits March 27, 2024 10:37
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
@timmywil timmywil merged commit feb75d3 into jquery:3.x-stable Mar 27, 2024
11 checks passed
@timmywil timmywil deleted the diff-words-3.x branch March 27, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants