Companion object to trait TypeCheckedTripleEquals that facilitates the importing of TypeCheckedTripleEquals members as
an alternative to mixing it in. One use case is to import TypeCheckedTripleEquals members so you can use
them in the Scala interpreter:
$ scala -classpath scalatest.jar Welcome to Scala version 2.10.0 Type in expressions to have them evaluated. Type :help for more information. scala> import org.scalactic._ import org.scalactic._ scala> import TypeCheckedTripleEquals._ import TypeCheckedTripleEquals._ scala> 1 + 1 === 2 res0: Boolean = true
- Companion:
- class
- Source:
- TypeCheckedTripleEquals.scala
Type members
Inherited classlikes
Class used via an implicit conversion to enable two objects to be compared with
=== and !== with a Boolean result and an enforced type constraint between
two object types. For example:
Class used via an implicit conversion to enable two objects to be compared with
=== and !== with a Boolean result and an enforced type constraint between
two object types. For example:
assert(a === b) assert(c !== d)
You can also check numeric values against another with a tolerance. Here are some examples:
assert(a === (2.0 +- 0.1)) assert(c !== (2.0 +- 0.1))
- Value parameters:
- leftSide
An object to convert to
Equalizer, which represents the value on the left side of a===or!==invocation.
- Inherited from:
- TripleEqualsSupport
- Source:
- TripleEqualsSupport.scala
Class used via an implicit conversion to enable any two objects to be compared with
=== and !== with a Boolean result and no enforced type constraint between
two object types. For example:
Class used via an implicit conversion to enable any two objects to be compared with
=== and !== with a Boolean result and no enforced type constraint between
two object types. For example:
assert(a === b) assert(c !== d)
You can also check numeric values against another with a tolerance. Here are some examples:
assert(a === (2.0 +- 0.1)) assert(c !== (2.0 +- 0.1))
- Value parameters:
- leftSide
An object to convert to
Equalizer, which represents the value on the left side of a===or!==invocation.
- Inherited from:
- TripleEqualsSupport
- Source:
- TripleEqualsSupport.scala
Value members
Inherited methods
Returns a TripleEqualsInvocationOnSpread[T], given an Spread[T], to facilitate
the “<left> should !== (<pivot> +- <tolerance>)”
syntax of Matchers.
Returns a TripleEqualsInvocationOnSpread[T], given an Spread[T], to facilitate
the “<left> should !== (<pivot> +- <tolerance>)”
syntax of Matchers.
- Value parameters:
- right
the
Spread[T]against which to compare the left-hand value
- Returns:
a
TripleEqualsInvocationOnSpreadwrapping the passedSpread[T]value, withexpectingEqualset tofalse.- Inherited from:
- TripleEqualsSupport
- Source:
- TripleEqualsSupport.scala
Returns a TripleEqualsInvocation[Null], given a null reference, to facilitate
the “<left> should !== null” syntax
of Matchers.
Returns a TripleEqualsInvocation[Null], given a null reference, to facilitate
the “<left> should !== null” syntax
of Matchers.
- Value parameters:
- right
a null reference
- Returns:
a
TripleEqualsInvocationwrapping the passednullvalue, withexpectingEqualset tofalse.- Inherited from:
- TripleEqualsSupport
- Source:
- TripleEqualsSupport.scala
Returns a TripleEqualsInvocation[T], given an object of type T, to facilitate
the “<left> should !== <right>” syntax
of Matchers.
Returns a TripleEqualsInvocation[T], given an object of type T, to facilitate
the “<left> should !== <right>” syntax
of Matchers.
- Value parameters:
- right
the right-hand side value for an equality assertion
- Returns:
a
TripleEqualsInvocationwrapping the passed right value, withexpectingEqualset tofalse.- Inherited from:
- TripleEqualsSupport
- Source:
- TripleEqualsSupport.scala
Returns a TripleEqualsInvocationOnSpread[T], given an Spread[T], to facilitate
the “<left> should === (<pivot> +- <tolerance>)”
syntax of Matchers.
Returns a TripleEqualsInvocationOnSpread[T], given an Spread[T], to facilitate
the “<left> should === (<pivot> +- <tolerance>)”
syntax of Matchers.
- Value parameters:
- right
the
Spread[T]against which to compare the left-hand value
- Returns:
a
TripleEqualsInvocationOnSpreadwrapping the passedSpread[T]value, withexpectingEqualset totrue.- Inherited from:
- TripleEqualsSupport
- Source:
- TripleEqualsSupport.scala
Returns a TripleEqualsInvocation[Null], given a null reference, to facilitate
the “<left> should === null” syntax
of Matchers.
Returns a TripleEqualsInvocation[Null], given a null reference, to facilitate
the “<left> should === null” syntax
of Matchers.
- Value parameters:
- right
a null reference
- Returns:
a
TripleEqualsInvocationwrapping the passednullvalue, withexpectingEqualset totrue.- Inherited from:
- TripleEqualsSupport
- Source:
- TripleEqualsSupport.scala
Returns a TripleEqualsInvocation[T], given an object of type T, to facilitate
the “<left> should === <right>” syntax
of Matchers.
Returns a TripleEqualsInvocation[T], given an object of type T, to facilitate
the “<left> should === <right>” syntax
of Matchers.
- Value parameters:
- right
the right-hand side value for an equality assertion
- Returns:
a
TripleEqualsInvocationwrapping the passed right value, withexpectingEqualset totrue.- Inherited from:
- TripleEqualsSupport
- Source:
- TripleEqualsSupport.scala
Returns an Equality[A] for any type A that determines equality
by first calling .deep on any Array (on either the left or right side),
then comparing the resulting objects with ==.
Returns an Equality[A] for any type A that determines equality
by first calling .deep on any Array (on either the left or right side),
then comparing the resulting objects with ==.
- Returns:
a default
Equalityfor typeA- Inherited from:
- TripleEqualsSupport
- Source:
- TripleEqualsSupport.scala
Deprecated and Inherited methods
- Deprecated
- Definition Classes
- Inherited from:
- TypeCheckedTripleEquals
- Source:
- TypeCheckedTripleEquals.scala
- Deprecated
- Definition Classes
- Inherited from:
- TypeCheckedTripleEquals
- Source:
- TypeCheckedTripleEquals.scala
- Deprecated
- Definition Classes
- Inherited from:
- TypeCheckedTripleEquals
- Source:
- TypeCheckedTripleEquals.scala
- Deprecated
- Definition Classes
- Inherited from:
- TypeCheckedTripleEquals
- Source:
- TypeCheckedTripleEquals.scala
Implicits
Inherited implicits
- Definition Classes
- Inherited from:
- LowPriorityTypeCheckedConstraint
- Source:
- LowPriorityTypeCheckedConstraint.scala
- Definition Classes
- Inherited from:
- TypeCheckedTripleEquals
- Source:
- TypeCheckedTripleEquals.scala
- Definition Classes
- Inherited from:
- LowPriorityTypeCheckedConstraint
- Source:
- LowPriorityTypeCheckedConstraint.scala
- Definition Classes
- Inherited from:
- TypeCheckedTripleEquals
- Source:
- TypeCheckedTripleEquals.scala