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

Fix incorrect PatchDocument on diff #11

Merged
merged 3 commits into from
Dec 18, 2020

Conversation

idobosman
Copy link
Contributor

When diffing the following json arrays:

  • Original: [1,2,3,4,5,6,7,10,11,12,8]
  • New: [1,2,3,4,5,6,7,9,10,11,8]

The expected outcome is [1,2,3,4,5,6,7,9,10,11,8], but the actual outcome turned out to be [1,2,3,4,5,6,7,11,11,12,8]. This incorrect outcome also occurs on different variants of the json array (see additional unit tests).

This pull request fixes this issue.

@mcintyre321 mcintyre321 merged commit d51e490 into mcintyre321:master Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants