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
Boolcomposable
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
- Alphabetic
- By Inheritance
- Bool
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
failureMessageArgs: IndexedSeq[Any]
Arguments to construct final failure message with raw message returned from
rawFailureMessage. -
abstract
def
midSentenceFailureMessageArgs: IndexedSeq[Any]
Arguments to construct final mid sentence failure message with raw message returned from
rawMidSentenceFailureMessage. -
abstract
def
midSentenceNegatedFailureMessageArgs: IndexedSeq[Any]
Arguments to construct final negated mid sentence failure message with raw message returned from
rawMidSentenceNegatedFailureMessage. -
abstract
def
negatedFailureMessageArgs: IndexedSeq[Any]
Arguments to construct final negated failure message with raw message returned from
rawNegatedFailureMessage. - abstract val prettifier: Prettifier
-
abstract
def
rawFailureMessage: String
raw message to report a failure
-
abstract
def
rawMidSentenceFailureMessage: String
raw mid sentence message to report a failure
-
abstract
def
rawMidSentenceNegatedFailureMessage: String
raw mid sentence message with a meaning opposite to that of the failure message
-
abstract
def
rawNegatedFailureMessage: String
raw message with a meaning opposite to that of the failure message
-
abstract
def
value: Boolean
the
Booleanvalue of thisBool
Concrete Value Members
-
def
&(bool: Bool): Bool
Logical
andthisBoolwith anotherBoolLogical
andthisBoolwith anotherBool- bool
another
Bool- returns
a
Boolthat represents the result of logicaland
-
def
&&(bool: Bool): Bool
Logical
andthisBoolwith anotherBoolLogical
andthisBoolwith anotherBool- bool
another
Bool- returns
a
Boolthat represents the result of logicaland
-
def
failureMessage: String
Construct and return failure message, by applying arguments returned from
failureMessageArgsto raw message returned fromrawFailureMessage -
def
midSentenceFailureMessage: String
Construct and return mid sentence failure message, by applying arguments returned from
midSentenceFailureMessageArgsto raw message returned fromrawMidSentenceFailureMessage -
def
midSentenceNegatedFailureMessage: String
Construct and return mid sentence negated failure message, by applying arguments returned from
midSentenceNegatedFailureMessageArgsto raw message returned fromrawMidSentenceNegatedFailureMessage -
def
negatedFailureMessage: String
Construct and return negated failure message, by applying arguments returned from
negatedFailureMessageArgsto raw message returned fromrawNegatedFailureMessage -
def
unary_!: Bool
Negate this
BoolNegate this
Bool- returns
a
Boolthat represents the result of negating the originalBool
-
def
|(bool: ⇒ Bool): Bool
Logical
orthisBoolwith anotherBoolLogical
orthisBoolwith anotherBool- bool
another
Bool- returns
a
Boolthat represents the result of logicalor
-
def
||(bool: ⇒ Bool): Bool
Logical
orthisBoolwith anotherBoolLogical
orthisBoolwith anotherBool- bool
another
Bool- returns
a
Boolthat represents the result of logicalor
