This method enables syntax such as the following:
This method enables syntax such as the following:
string will endWith regex ("world") ^
This method enables syntax such as the following:
This method enables syntax such as the following:
string will startWith regex ("hello") ^
This method enables syntax such as the following:
This method enables syntax such as the following:
string will include regex ("hi") ^
This method enables syntax such as the following:
This method enables syntax such as the following:
file will not (exist) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
file will exist ^
This method enables syntax such as the following:
This method enables syntax such as the following:
xs will contain oneOf (1, 2, 3) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result will have length (3) ^ result will have size (3) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result will be a aMatcher ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result will === (100 +- 1) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
a will === (b) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result will not equal (3) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result will (equal (expected) and have length 3) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result will equal (3) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result will 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 willBe 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 willBe 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 willBe excellentRead ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willBe theSameInstanceAs (anotherObject) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willBe null ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willBe defined ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willBe empty ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willBe writable ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willBe readable ^
This method enables syntax such as the following:
This method enables syntax such as the following:
aDouble willBe an [Book] ^
This method enables syntax such as the following:
This method enables syntax such as the following:
aDouble willBe a [Book] ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willBe sorted ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willBe 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 willBe odd ^
This method enables syntax such as the following:
This method enables syntax such as the following:
8 willBe >= (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
5 willBe <= (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
8 willBe > (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
5 willBe < (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
aDouble willBe 8.8 ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willEqual null ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willEqual 7.1 +- 0.2 ^
This method enables syntax such as the following:
This method enables syntax such as the following:
a willEqual b ^
This method enables syntax such as the following:
This method enables syntax such as the following:
string willNot include regex ("hi") ^
This method enables syntax such as the following:
This method enables syntax such as the following:
string willNot endWith regex ("world") ^
This method enables syntax such as the following:
This method enables syntax such as the following:
string willNot startWith regex ("hello") ^
This method enables syntax such as the following:
This method enables syntax such as the following:
file willNot exist ^
This method enables syntax such as the following:
This method enables syntax such as the following:
xs willNot contain (oneOf (1, 2, 3)) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willNot have length (3) ^ result willNot have size (3) ^ exception willNot have message ("file not found") ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willNot (be readable) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willNot (be (3)) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result willNot be (3) ^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL.This class is used in conjunction with an implicit conversion to enable
will
methods to be invoked on objects of typeAny
.