Open eriksunsol opened 5 years ago
I decided to implement the solution in the already opened PR https://github.com/Palindrom/JSONPatcherProxy/pull/45, because I was afraid of creating a conflict that's troublesome to merge.
This issue is partially solved in #45, but there are even more edge cases:
There are 3 kinds of arrays to test:
undefined
undefined
There are many kinds of array operations to test:
This is a continuation of dicussion here: https://github.com/Palindrom/JSONPatcherProxy/pull/45#discussion_r311897775
Steps to reproduce
See failing test here: 7cf32fd09593fef2751abc51114267e4a14f3897
The test extends an array with 5 elements to 9 elements with
undefined
ornull
values.Expected result
Four
add
patches to addnull
elements.Actual result
One
add
patch and onereplace
patch.