Emil Kantis
04/21/2023, 2:48 PMshouldBeEqualToComparingFields to handle standard collections?Emil Kantis
04/21/2023, 2:51 PMkey and valuesam
04/21/2023, 2:57 PMEmil Kantis
04/21/2023, 3:01 PMclass A(val b: B)
class B(val c: C)
class C(val ds: List<D>)
class D(val something: String, val other: Int)
and want to check that a1 and a2 are equal?sam
04/21/2023, 3:01 PMEmil Kantis
04/21/2023, 3:01 PMEmil Kantis
04/21/2023, 3:02 PMa1.b.c.d.forAll { it shouldEqualComparingfields a2.b.c.d }
(and then if there's other properties on other levels we have to check them by hand)