ResultOfHaveWordForExtent

final class ResultOfHaveWordForExtent[A](left: A, 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 length(expectedLength: Long)(implicit len: Length[A]): Assertion

This method enables the following syntax:

This method enables the following syntax:

obj should have length (2L)
               ^

This method is ultimately invoked for objects that have a length property structure of type Long, but is of a type that is not handled by implicit conversions from nominal types such as scala.Seq, java.lang.String, and java.util.List.

infix def message(expectedMessage: String)(implicit messaging: Messaging[A]): Assertion

This method enables the following syntax:

This method enables the following syntax:

exception should have message ("file not found")
                     ^
infix def size(expectedSize: Long)(implicit sz: Size[A]): Assertion

This method enables the following syntax:

This method enables the following syntax:

obj should have size (2L)
               ^

This method is ultimately invoked for objects that have a size property structure of type Long, but is of a type that is not handled by implicit conversions from nominal types such as Traversable and java.util.Collection.

override def toString: String

Overrides to return pretty toString.

Overrides to return pretty toString.

Returns:

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

Definition Classes
Any