summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
authorAlexander Shorin <kxepal@gmail.com>2012-07-15 23:37:38 +0400
committerAlexander Shorin <kxepal@gmail.com>2012-07-15 23:37:38 +0400
commit76bc4422c190606b7c7b8ad8cb22cdf2e85ac433 (patch)
tree52ffb88a401c9d553a2843273346a0fefdf86164 /tests.py
parent564e39be424f8151a2749055e06d0b5b4666bbf0 (diff)
downloadpython-json-patch-76bc4422c190606b7c7b8ad8cb22cdf2e85ac433.tar.gz
Fix issue #4.
Patch creation from diff of two JSON documents was able to produce invalid instance if there was need to add more than 1 array element. In this situation, elements been tryed be added since higher index that is far outside of target. That's correct order if we removing array elements (from higher index to lower one), but we should add elements in reversed order (from lower index to higher).
Diffstat (limited to 'tests.py')
0 files changed, 0 insertions, 0 deletions