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

christophsturm

04/07/2021, 10:24 PM
I wonder if it would be cool to add special handling to isEquals failures that have the same string output.
r

robfletcher

04/07/2021, 11:38 PM
It does add the type name in, but even that sometimes doesn’t help. I hit an issue the other day where I had 2 sets that toString’ed the same, and they were both sets, but the elements inside the set were different types
c

christophsturm

04/08/2021, 8:17 AM
I was thinking of adding a line that explains that toString can have the same output and equals still be false.
strikt could just walk the extra mile and really find out whats going on, for example in your sets example
r

robfletcher

04/08/2021, 2:03 PM
yeah, I wonder. I could certainly dive deeper in the case of a map or collection
c

christophsturm

04/08/2021, 2:25 PM
i could also work on improving some error messages.
r

robfletcher

04/08/2021, 2:38 PM
That would be awesome. I have a bug fix I want to work on but not sure how much time I’ll be able to carve out this week
2 Views