ResultOfBeWordForAny

class ResultOfBeWordForAny[T](left: T, mustBeTrue: Boolean, prettifier: Prettifier, pos: Position)

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

class Object
trait Matchable
class Any

Value members

Concrete methods

infix def a(aMatcher: AMatcher[T]): Assertion

This method enables the following syntax (positiveNumber is a AMatcher):

This method enables the following syntax (positiveNumber is a AMatcher):

1 must be a positiveNumber
           ^
infix def a(bePropertyMatcher: BePropertyMatcher[T])(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax, where badBook is, for example, of type Book and goodRead refers to a BePropertyMatcher[Book]:

This method enables the following syntax, where badBook is, for example, of type Book and goodRead refers to a BePropertyMatcher[Book]:

badBook must be a (goodRead)
                 ^
infix def an(anMatcher: AnMatcher[T]): Assertion

This method enables the following syntax (positiveNumber is a AnMatcher):

This method enables the following syntax (positiveNumber is a AnMatcher):

1 must be an oddNumber
           ^
infix def an(beTrueMatcher: BePropertyMatcher[T])(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax, where badBook is, for example, of type Book and excellentRead refers to a BePropertyMatcher[Book]:

This method enables the following syntax, where badBook is, for example, of type Book and excellentRead refers to a BePropertyMatcher[Book]:

book must be an (excellentRead)
              ^
infix def definedAt[U](right: U)(implicit ev: T <:< PartialFunction[U, _]): Assertion

This method enables the following syntax, where fraction is, for example, of type PartialFunction:

This method enables the following syntax, where fraction is, for example, of type PartialFunction:

fraction must be definedAt (6)
                  ^
infix def theSameInstanceAs(right: AnyRef)(implicit toAnyRef: T <:< AnyRef): Assertion

This method enables the following syntax:

This method enables the following syntax:

result must be theSameInstanceAs anotherObject
                ^
override def toString: String

Overrides to return pretty toString.

Overrides to return pretty toString.

Returns:

"ResultOfBeWordForAny([left], [mustBeTrue])"

Definition Classes
Any