https://kotlinlang.org logo
#strikt
Title
# strikt
c

christophsturm

09/27/2023, 9:29 AM
this looks nice: https://github.com/mcmire/super_diff maybe an inspiration for better diffing.
r

robfletcher

09/27/2023, 8:22 PM
ooh, that does look interesting
e

Eric

10/10/2023, 5:17 PM
I think I used this project when I wrote some custom (hamcrest?) assertion a long while ago. https://github.com/flipkart-incubator/zjsonpatch Basically generated a json patch for actual vs expected and displayed it if not empty.
👀 1
c

christophsturm

10/11/2023, 8:43 AM
thanks, also a good inspiration, this seems to use jackson
I’m thinking of writing a lib that can diff any 2 instances of a kotlin or java class and pretty print the difference. probably also a lib that can pretty print any kotlin object.
could then be used by assertion libs like strikt
r

robfletcher

10/11/2023, 4:53 PM
that could be useful. Diffing is actually a pretty thorny subject. There are some nasty corners with things like properties that are unordered collections (e.g.
Set
instances) and especially when you have collections of more complex objects
2 Views