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