org.specs2.matcher.describe
Type members
Classlikes
Render the result of a comparison for different types: primitives, throwables, collections,...
Render the result of a comparison for different types: primitives, throwables, collections,...
The comparison may turn out to render identical values or differences
Typeclass for values which can be compared and return a comparison result
Typeclass for values which can be compared and return a comparison result
- Companion
- object
Note: variance is not managed by having a Diffable typeclass with a contravariant parameter Diffable[-T] In that the
implicit for case classes (see product
) can not be found.
Note: variance is not managed by having a Diffable typeclass with a contravariant parameter Diffable[-T] In that the
implicit for case classes (see product
) can not be found.
Instead we deal with variance at the level of each implicit.
For example given exceptionDiffable[T <: Throwable]: Diffable[T] = new ThrowableDiffable[T]
will be found for any
custom exception extending Throwable. Similarly we can get a diff for RightString, Int and RightString,
Int with given eitherDiffable[L: Diffable, R: Diffable, T <: Either[L, R]]
because we unify both Rights with
Either[String, Int]
- Companion
- class
Import the implicit Diffable contained in this object to get a colored output showing line differences in Strings containing lots of lines
Import the implicit Diffable contained in this object to get a colored output showing line differences in Strings containing lots of lines
This diffable displays elements missing or added from a Seq
This diffable displays elements missing or added from a Seq
This diffable uses the Lines diffables to show differences between 2 sequences as a unified sequence with inlined differences
This diffable uses the Lines diffables to show differences between 2 sequences as a unified sequence with inlined differences