This method enables the following syntax:
This method enables the following syntax:
result should (contain a (positiveNumber) and 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) and contain allOf (1, 2, 3))
^
This method enables the following syntax:
This method enables the following syntax:
result should (contain a (positiveNumber) and contain an (invalidNumber))
^
This method enables the following syntax:
This method enables the following syntax:
Array(1, 2) should (contain (2) and 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) and 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) and contain inOrderOnly (1, 3))
^
This method enables the following syntax:
This method enables the following syntax:
Map("one" -> 1, "two" -> 2) should (contain key ("two") and 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) and 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) and 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) and 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) and 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) and 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 (2) and contain value (1))
^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchersfor an overview of the matchers DSL.