In my unit test, I want to express that a computed (result) sequence yielded a predefined sequence of result values. But without assuming anything about the actual implementation type of the sequence container.
And I want to spell out my intent rather clear and self-explanatory.
If I try to use the "ShouldMatchers" of ScalaTest and write
val Input22 = ...
calculation(Input22) should equal (Seq("x","u"))
...then I get into trouble with the simple equality, because calculation(..)
might return an ArrayBuffer, while Seq("x","u")
is an List