Scalactic is brought to you by:

trait Bool extends AnyRef

A trait that represent a rich-featured boolean value, which includes the following members:

  • a boolean value
  • methods useful for failure messages construction
  • logical expression methods that makes Bool composable

Bool is used by code generated from BooleanMacro (which AssertionsMacro and RequirementsMacro uses), it needs to be public so that the generated code can be compiled. It is expected that ScalaTest users would ever need to use Bool directly.

Source
Bool.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bool
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def failureMessageArgs: IndexedSeq[Any]

    Arguments to construct final failure message with raw message returned from rawFailureMessage.

  2. abstract def midSentenceFailureMessageArgs: IndexedSeq[Any]

    Arguments to construct final mid sentence failure message with raw message returned from rawMidSentenceFailureMessage.

  3. abstract def midSentenceNegatedFailureMessageArgs: IndexedSeq[Any]

    Arguments to construct final negated mid sentence failure message with raw message returned from rawMidSentenceNegatedFailureMessage.

  4. abstract def negatedFailureMessageArgs: IndexedSeq[Any]

    Arguments to construct final negated failure message with raw message returned from rawNegatedFailureMessage.

  5. abstract val prettifier: Prettifier
  6. abstract def rawFailureMessage: String

    raw message to report a failure

  7. abstract def rawMidSentenceFailureMessage: String

    raw mid sentence message to report a failure

  8. abstract def rawMidSentenceNegatedFailureMessage: String

    raw mid sentence message with a meaning opposite to that of the failure message

  9. abstract def rawNegatedFailureMessage: String

    raw message with a meaning opposite to that of the failure message

  10. abstract def value: Boolean

    the Boolean value of this Bool

Concrete Value Members

  1. def &(bool: Bool): Bool

    Logical and this Bool with another Bool

    Logical and this Bool with another Bool

    bool

    another Bool

    returns

    a Bool that represents the result of logical and

  2. def &&(bool: Bool): Bool

    Logical and this Bool with another Bool

    Logical and this Bool with another Bool

    bool

    another Bool

    returns

    a Bool that represents the result of logical and

  3. def failureMessage: String

    Construct and return failure message, by applying arguments returned from failureMessageArgs to raw message returned from rawFailureMessage

  4. def midSentenceFailureMessage: String

    Construct and return mid sentence failure message, by applying arguments returned from midSentenceFailureMessageArgs to raw message returned from rawMidSentenceFailureMessage

  5. def midSentenceNegatedFailureMessage: String

    Construct and return mid sentence negated failure message, by applying arguments returned from midSentenceNegatedFailureMessageArgs to raw message returned from rawMidSentenceNegatedFailureMessage

  6. def negatedFailureMessage: String

    Construct and return negated failure message, by applying arguments returned from negatedFailureMessageArgs to raw message returned from rawNegatedFailureMessage

  7. def unary_!: Bool

    Negate this Bool

    Negate this Bool

    returns

    a Bool that represents the result of negating the original Bool

  8. def |(bool: => Bool): Bool

    Logical or this Bool with another Bool

    Logical or this Bool with another Bool

    bool

    another Bool

    returns

    a Bool that represents the result of logical or

  9. def ||(bool: => Bool): Bool

    Logical or this Bool with another Bool

    Logical or this Bool with another Bool

    bool

    another Bool

    returns

    a Bool that represents the result of logical or