diff returns incorrect value when items are deleted
karrtikiyer opened this issue · comments
diff({'a': 1, 'b': 2}, {}, syntax='symmetric')
I expect the above to return
{delete: {'a': 1, 'b': 2}}
instead it returns
[{'a': 1, 'b': 2}, {}]
you probably want syntax='explicit'
How about this?
diff({'a': 1, 'b': 2}, {}, syntax='explicit') == diff({}, {}, syntax='explicit')
> True
How could these two diffs be equivalent? Am I not understanding something basic here?