-
Notifications
You must be signed in to change notification settings - Fork 87
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
Broken result for diff('[{"hi": "wombat"}]','[]') #83
Comments
Interesting case for the default
|
Interesting! With respect to "explicit", I gather you refer to
? For me, this also returns the unexpected I can confirm that
returns the changed data. |
Sample here master...corytodd/issue-83 According to the tests, specifically this one, your example is returning the correct output. I agree that the result is unintuitive and I'm not sure of a good answer.
|
Just so that we are aligned:
This is with the latest Python release (3.12.6) the latest jsondiff (2.2.1) on Arch Linux. |
Did you mean to use strings as your inputs? That would explain why symmetric and explicit are different for you.
|
Ah, sorry, for the noise!
behaves exactly as you outlined in your initial response. |
Running
yields
which is unexpected - there clearly is a difference.
Also consider that
i.e. with the arguments simply swapped, yields
which is what I would expect from that diff.
The text was updated successfully, but these errors were encountered: