ResultOfBeWordForAny

class ResultOfBeWordForAny[T](left: T, shouldBeTrue: 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 should 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 should 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 should 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 should 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 should 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 should be theSameInstanceAs anotherObject
                ^
override def toString: String

Overrides to return pretty toString.

Overrides to return pretty toString.

Returns:

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

Definition Classes
Any