Class

org.scalactic.TripleEqualsSupport

CheckingEqualizer

Related Doc: package TripleEqualsSupport

Permalink

class CheckingEqualizer[L] extends AnyRef

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))

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

Instance Constructors

  1. new CheckingEqualizer(leftSide: L)

    Permalink

    leftSide

    An object to convert to Equalizer, which represents the value on the left side of a === or !== invocation.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==(spread: Spread[L]): Boolean

    Permalink

    Determine whether a numeric object is outside the passed Spread, returning a Boolean.

    Determine whether a numeric object is outside the passed Spread, returning a Boolean.

    spread

    the Spread against which to compare the value passed to the constructor as leftSide

    returns

    true if the value passed to the constructor as leftSide is not within the Spread passed to this method.

  3. def !==[R](rightSide: R)(implicit constraint: CanEqual[L, R]): Boolean

    Permalink

    Compare two objects for inequality, returning a Boolean, using the Constraint instance passed as constraint.

    Compare two objects for inequality, returning a Boolean, using the Constraint instance passed as constraint.

    rightSide

    the object to compare for inequality with leftSide, passed to the constructor

    constraint

    an implicit Constraint instance that enforces a relationship between types L and R and defines a way of calculating equality for objects of type L

    returns

    true if the leftSide and rightSide objects are not equal according to the passed Constraint instance.

  4. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def ===(spread: Spread[L]): Boolean

    Permalink

    Determine whether a numeric object is within the passed Spread, returning a Boolean.

    Determine whether a numeric object is within the passed Spread, returning a Boolean.

    spread

    the Spread against which to compare the value passed to the constructor as leftSide

    returns

    true if the value passed to the constructor as leftSide is not within the Spread passed to this method.

  7. def ===[R](rightSide: R)(implicit constraint: CanEqual[L, R]): Boolean

    Permalink

    Compare two objects for equality, returning a Boolean, using the Constraint instance passed as constraint.

    Compare two objects for equality, returning a Boolean, using the Constraint instance passed as constraint.

    rightSide

    the object to compare for equality with leftSide, passed to the constructor

    constraint

    an implicit Constraint instance that enforces a relationship between types L and R and defines a way of calculating equality for objects of type L

    returns

    true if the leftSide and rightSide objects are equal according to the passed Constraint instance.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val leftSide: L

    Permalink

    An object to convert to Equalizer, which represents the value on the left side of a === or !== invocation.

    An object to convert to Equalizer, which represents the value on the left side of a === or !== invocation.

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped