inveniosoftware / inveniosoftware/dictdiffer
Wrong diff in case of removing a non last index of an array
Open
Type: enhancement
- Dominant language
- Python
- Stars
- 849
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
Suppose we have an array
```python
old = ['a','b','c']
new = ['b','c']
# In this case I figured from the documentation that you should expect
# the diff to be ('remove','',[(0,'a')])
# but instead I'm getting:
[('change', [0], ('a', 'b')), ('change', [1], ('b', 'c')), ('remove', '', [(2, 'c')])]
```
Is that an error or did I misinterpret the usage of the library?
Contributor guide
Assessment
This issue has not been assessed yet.