I have a case class like this.
case class A(a: Int, List[Int])
Now I want to assert two instances of A
val a = A(100, List(2, 4))
val b = A(100, List(4, 2))
a shouldBe b
a shouldEqual b
Above two statements fail because List(2, 4) does not have same order as List(4, 2).
Is there a way to assert whole objects of A i.e. a and b, so that it passes ?