Implements contain inOrder syntax for sequences of type S.
Implements contain inOrder syntax for sequences of type S.
an sequence about which an assertion is being made
elements all of which should be contained, in order of appearance in eles, in the passed sequence
true if the passed sequence contains all of the passed elements in (iteration) order
Implements contain inOrderOnly syntax for sequences of type S.
Implements contain inOrderOnly syntax for sequences of type S.
an sequence about which an assertion is being made
the only elements that should be contained, in order of appearence in eles, in the passed sequence
true if the passed sequence contains only the passed elements in (iteration) order
Implements contain theSameElementsInOrderAs syntax for sequences of type S.
Implements contain theSameElementsInOrderAs syntax for sequences of type S.
an sequence about which an assertion is being made
an sequence that should contain the same elements, in (iterated) order as the passed leftSequence
true if the passed leftSequence contains the same elements, in (iterated) order, as the passed rightSequence
Typeclass that enables for sequencing certain
containsyntax in the ScalaTest matchers DSL.An
Sequencing[A]provides access to the "sequenching nature" of typeAin such a way that relevantcontainmatcher syntax can be used with typeA. AnAcan be any type of sequencing—an object that in some way brings together other objects in order. ScalaTest provides implicit implementations for several types out of the box in theSequencingcompanion object:scala.collection.GenSeqscala.collection.SortedSetscala.collection.SortedMapArrayjava.util.Listjava.util.SortedSetjava.util.SortedMapStringThe
containsyntax enabled by this trait is:result should contain inOrder (1, 2, 3)result should contain inOrderOnly (1, 2, 3)result should contain theSameElementsInOrderAs List(1, 2, 3)You can enable the
containmatcher syntax enabled bySequencingon your own typeUby defining anSequencing[U]for the type and making it available implicitly.