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.
- Companion:
- object
- Source:
- Bool.scala
Value members
Abstract methods
Arguments to construct final failure message with raw message returned from rawFailureMessage
.
Arguments to construct final failure message with raw message returned from rawFailureMessage
.
- Source:
- Bool.scala
Arguments to construct final mid sentence failure message with raw message returned from rawMidSentenceFailureMessage
.
Arguments to construct final mid sentence failure message with raw message returned from rawMidSentenceFailureMessage
.
- Source:
- Bool.scala
Arguments to construct final negated mid sentence failure message with raw message returned from rawMidSentenceNegatedFailureMessage
.
Arguments to construct final negated mid sentence failure message with raw message returned from rawMidSentenceNegatedFailureMessage
.
- Source:
- Bool.scala
Arguments to construct final negated failure message with raw message returned from rawNegatedFailureMessage
.
Arguments to construct final negated failure message with raw message returned from rawNegatedFailureMessage
.
- Source:
- Bool.scala
raw mid sentence message to report a failure
raw mid sentence message to report a failure
- Source:
- Bool.scala
raw mid sentence message with a meaning opposite to that of the failure message
raw mid sentence message with a meaning opposite to that of the failure message
- Source:
- Bool.scala
raw message with a meaning opposite to that of the failure message
raw message with a meaning opposite to that of the failure message
- Source:
- Bool.scala
Concrete methods
Logical and
this Bool
with another Bool
Logical and
this Bool
with another Bool
- Value parameters:
- bool
another
Bool
- Returns:
a
Bool
that represents the result of logicaland
- Source:
- Bool.scala
Logical and
this Bool
with another Bool
Logical and
this Bool
with another Bool
- Value parameters:
- bool
another
Bool
- Returns:
a
Bool
that represents the result of logicaland
- Source:
- Bool.scala
Construct and return failure message, by applying arguments returned from failureMessageArgs
to
raw message returned from rawFailureMessage
Construct and return failure message, by applying arguments returned from failureMessageArgs
to
raw message returned from rawFailureMessage
- Source:
- Bool.scala
Construct and return mid sentence failure message, by applying arguments returned from midSentenceFailureMessageArgs
to
raw message returned from rawMidSentenceFailureMessage
Construct and return mid sentence failure message, by applying arguments returned from midSentenceFailureMessageArgs
to
raw message returned from rawMidSentenceFailureMessage
- Source:
- Bool.scala
Construct and return mid sentence negated failure message, by applying arguments returned from midSentenceNegatedFailureMessageArgs
to
raw message returned from rawMidSentenceNegatedFailureMessage
Construct and return mid sentence negated failure message, by applying arguments returned from midSentenceNegatedFailureMessageArgs
to
raw message returned from rawMidSentenceNegatedFailureMessage
- Source:
- Bool.scala
Construct and return negated failure message, by applying arguments returned from negatedFailureMessageArgs
to
raw message returned from rawNegatedFailureMessage
Construct and return negated failure message, by applying arguments returned from negatedFailureMessageArgs
to
raw message returned from rawNegatedFailureMessage
- Source:
- Bool.scala
Negate this Bool
Negate this Bool
- Returns:
a
Bool
that represents the result of negating the originalBool
- Source:
- Bool.scala
Logical or
this Bool
with another Bool
Logical or
this Bool
with another Bool
- Value parameters:
- bool
another
Bool
- Returns:
a
Bool
that represents the result of logicalor
- Source:
- Bool.scala
Logical or
this Bool
with another Bool
Logical or
this Bool
with another Bool
- Value parameters:
- bool
another
Bool
- Returns:
a
Bool
that represents the result of logicalor
- Source:
- Bool.scala