TripleEqualsSupport

org.scalactic.TripleEqualsSupport
See theTripleEqualsSupport companion trait

Attributes

Companion
trait
Source
TripleEqualsSupport.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final class AToBEquivalenceConstraint[A, B](equivalenceOfB: Equivalence[B], cnv: A => B) extends CanEqual[A, B]

An implementation of Constraint for two types A and B that requires an Equality[B] and a conversion function from A to B.

An implementation of Constraint for two types A and B that requires an Equality[B] and a conversion function from A to B.

Value parameters

equivalenceOfB

an Equivalence type class for B

Attributes

Source
TripleEqualsSupport.scala
Supertypes
class CanEqual[A, B]
class Object
trait Matchable
class Any
final class BToAEquivalenceConstraint[A, B](equivalenceOfA: Equivalence[A], cnv: B => A) extends CanEqual[A, B]

An implementation of Constraint for two types A and B that requires an Equality[A] and a conversion function from B to A.

An implementation of Constraint for two types A and B that requires an Equality[A] and a conversion function from B to A.

Value parameters

equivalenceOfA

an Equivalence type class for A

Attributes

Source
TripleEqualsSupport.scala
Supertypes
class CanEqual[A, B]
class Object
trait Matchable
class Any
final class EqualityConstraint[A, B](equalityOfA: Equality[A]) extends CanEqual[A, B]

An implementation of Constraint for two types A and B that requires an Equality[A] to which its areEqual method can delegate an equality comparison.

An implementation of Constraint for two types A and B that requires an Equality[A] to which its areEqual method can delegate an equality comparison.

Value parameters

equalityOfA

an Equality type class for A

Attributes

Source
TripleEqualsSupport.scala
Supertypes
class CanEqual[A, B]
class Object
trait Matchable
class Any
final case class Spread[T](pivot: T, tolerance: T)(implicit evidence$1: Numeric[T])

Class representing an spread (i.e., range) between two numbers.

Class representing an spread (i.e., range) between two numbers.

The spread is expressed in terms of a Numeric pivot and tolerance. The spread extends from pivot - tolerance to pivot + tolerance, inclusive.

Value parameters

pivot

the pivot number at the center of the spread

tolerance

the tolerance that determines the high and low point of the spread

Attributes

Source
TripleEqualsSupport.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class TripleEqualsInvocation[T](right: T, expectingEqual: Boolean)

Facilitates the “should ===” and “should !==” syntax of ScalaTest's matchers DSL.

Facilitates the “should ===” and “should !==” syntax of ScalaTest's matchers DSL.

Instances of this class are created and returned by the === and !== methods of trait TripleEqualsSupport.

Value parameters

expectingEqual

true if the result of a === invocation; false if the result of a !== invocation.

right

the right-hand side value for an equality assertion

Attributes

Source
TripleEqualsSupport.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class TripleEqualsInvocationOnSpread[T](spread: Spread[T], expectingEqual: Boolean)

Facilitates the “should === (x += y)” and “should !== (x += y)” syntax of ScalaTest's matchers DSL.

Facilitates the “should === (x += y)” and “should !== (x += y)” syntax of ScalaTest's matchers DSL.

Instances of this class are created and returned by the === and !== methods of trait TripleEqualsSupport.

Value parameters

expectingEqual

true if the result of a === invocation; false if the result of a !== invocation.

spread

the Spread[T] against which to compare the left-hand value

Attributes

Source
TripleEqualsSupport.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all