This method enables the following syntax (positiveNumber is a AMatcher):
This method enables the following syntax (positiveNumber is a AMatcher):
traversable should contain a positiveNumber
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain allOf (1, 2)
^
This method enables the following syntax (oddNumber is a AMatcher):
This method enables the following syntax (oddNumber is a AMatcher):
traversable should contain an oddNumber
^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) should contain (atLeastOneOf(1, 2))
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain inOrder (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain inOrderOnly (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) should contain (oneOf(1, 2))
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain noneOf (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain oneOf (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain only (1, 2)
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain theSameElementsAs array
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain theSameElementsAs anotherTraversable
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain theSameElementsInOrderAs array
^
This method enables the following syntax:
This method enables the following syntax:
traversable should contain theSameElementsInOrderAs anotherTraversable
^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchersfor an overview of the matchers DSL.