This method enables syntax such as the following:
This method enables syntax such as the following:
array must not have length (3)
^
This method enables syntax such as the following, where positiveNumber is a AMatcher:
This method enables syntax such as the following, where positiveNumber is a AMatcher:
array must contain a positiveNumber
^
This method enables syntax such as the following:
This method enables syntax such as the following:
xs must contain oneOf (1, 2, 3) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result must have length (3)
result must have size (3)
This method enables syntax such as the following:
This method enables syntax such as the following:
result must be a aMatcher
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result must === (100 +- 1)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
a must === (b)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result must (equal (expected) and have length 3)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result must equal (3)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result must be (3)
^
This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:
This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:
programmingInScala mustBe an (excellentRead)
^
This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:
This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:
programmingInScala mustBe a (goodRead)
^
This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:
This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:
programmingInScala mustBe excellentRead
^
This method enables the following syntax:
This method enables the following syntax:
list mustBe an ('empty)
^
This method enables the following syntax:
This method enables the following syntax:
list mustBe a ('empty)
^
This method enables the following syntax:
This method enables the following syntax:
list mustBe 'empty
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result mustBe theSameInstanceAs (anotherObject)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result mustBe null
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result mustBe 7.1 +- 0.2
^
This method enables the following syntax, where odd refers to a BeMatcher[Int]:
This method enables the following syntax, where odd refers to a BeMatcher[Int]:
testing 1 mustBe odd ^
This method enables syntax such as the following:
This method enables syntax such as the following:
8 mustBe >= (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
5 mustBe <= (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
8 mustBe > (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
5 mustBe < (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
aDouble mustBe 8.8
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result mustEqual null
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result mustEqual 7.1 +- 0.2
^
This method enables syntax such as the following:
This method enables syntax such as the following:
a mustEqual b ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result mustNot (be (3))
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result mustNot be (3)
^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchersfor an overview of the matchers DSL.This class is used in conjunction with an implicit conversion to enable
mustmethods to be invoked on objects of typescala.Array[T].