This method enables the following syntax:
This method enables the following syntax:
result should (contain a (positiveNumber) or contain a (validNumber))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2, 3) should (contain theSameElementAs List(3, 2, 1) or contain allOf (1, 2, 3))
^
This method enables the following syntax:
This method enables the following syntax:
result should (contain a (positiveNumber) or contain an (invalidNumber))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2) should (contain (2) or contain (3 - 1))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2, 3) should (contain theSameElementAs List(3, 2, 1) or contain inOrder (1, 2, 3))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2, 3) should (contain theSameElementAs List(3, 2, 1) or contain inOrderOnly (1, 3))
^
This method enables the following syntax:
This method enables the following syntax:
Map("one" -> 1, "two" -> 2) should (contain key ("cat") or contain key ("one"))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2, 3) should (contain theSameElementAs List(3, 2, 1) or contain noneOf (7, 8, 9))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2, 3) should (contain theSameElementAs List(3, 2, 1) or contain oneOf (1, 3, 3))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2, 3) should (contain theSameElementAs List(3, 2, 1) or contain only (3, 1))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2, 3) should (contain theSameElementAs List(3, 2, 1) or contain theSameElementsAs List(1, 2, 3))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2, 3) should (contain theSameElementAs List(3, 2, 1) or contain theSameElementsInOrderAs List(1, 2, 3))
^
This method enables the following syntax:
This method enables the following syntax:
Map("one" -> 1, "two" -> 2) should (contain value (7) or contain value (1))
^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchersfor an overview of the matchers DSL.