How do I compare two list of lists using scala test?
val actual = Array(Row("1", "2"), Row("3", "4"))
val fail_expected = Array(Row("1", "2"), Row("3", "2"))
val pass_expected = Array(Row("3", "4"), Row("1", "2"))
actual should contain theSameElementsAs pass_expected
Thank you guys for the response, actually it works already, it's my expected answer that is wrong.
Edit: Sorry, for the confusion. I mean the initial way of doing it is already correct, it is my expected answer that has error.