What is the correct way to get object equality? I ...
# announcements
u
What is the correct way to get object equality? I tacked on
data
to this simple class, but spek is failing:
Copy code
data class SimplifiedRule(val preFiller : List<String>, val filler : List<String>, val postFiller : List<String>)
Copy code
java.lang.AssertionError: 
Expected <SimplifiedRule(preFiller=[one], filler=[two, three], postFiller=[four])>, 
actual <SimplifiedRule(preFiller=[one], filler=[two three], postFiller=[four])>.