-
Notifications
You must be signed in to change notification settings - Fork 16
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
Better diff output when comparing #67
Conversation
Can work on fixing up tests if you agree with the idea in principle. Thanks |
@slobo, thanks for this! Could you post outputs of a before/after your change, please? What does that change in practice, for those using the library? Also, there are 2 other uses of |
Testcode: const A = Immutable.fromJS({ my: { very: { deep: 1, struct: 2, containing: 3, stuff: 4 } } })
const B = A.setIn(['my', 'very', 'andmore'], 5)
A.should.equal(B) Without patch:
With patch:
|
Nice PR! I have same problem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @slobo, sorry I didn't get back to you earlier. Could you indeed look at test failures here?
And did you see my previous question:
Also, there are 2 other uses of
.toString()
in the file, do you think it's worth updating them as well?
@slobo, ping? :) |
Yes, sorry it fell off my radar, let me take a look right away |
This shows a better diff of which keys are extra/missing rather than getting big strings dumped on the user
I've updated the tests, let's see if they pass. I didn't know how to deep check the messages (i.e. the
The other two usages of
Using
So I suggest leaving those as-is. |
@astorije, let me know if you need anything else before this can be merged. Thanks. |
@astorije ping... thanks |
Very interested in seeing this merged. Let me know if I can help. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @slobo! Alright, I quickly looked at your code and comments from 1y+ ago and it looks good.
I can't believe I let that get stale for a year, sorry!!
I'll merge as-is and will have until v2 to find out if something is wrong.
Thanks for your help and patience!! 🙏
Better diff output when comparing
This shows a better diff of which keys are extra/missing rather than getting big strings dumped on the user