Diffs

org.specs2.main.Diffs
trait Diffs

Define and compute the differences between strings (used by the printers)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class SmartDiffs

Members list

Value members

Abstract methods

def show: Boolean

Attributes

Returns

true if the differences must be shown

def show(actual: Any, expected: Any): Boolean

Attributes

Returns

true if the differences must be shown for 2 different values

def showDiffs(actual: Any, expected: Any): (String, String)

Attributes

Returns

the diffs

def showFull: Boolean

Attributes

Returns

true if the full strings must also be shown

def showMap(actual: Map[Any, Any], expected: Map[Any, Any]): Boolean

Attributes

Returns

true if the differences must be shown for 2 different maps

def showMapDiffs(actual: Map[Any, Any], expected: Map[Any, Any]): (Seq[String], Seq[String], Seq[String])

Attributes

Returns

the diffs for sequences with missing / added values

def showSeq(actual: Seq[Any], expected: Seq[Any], ordered: Boolean): Boolean

Attributes

Returns

true if the differences must be shown for 2 different sequences of values

def showSeqDiffs(actual: Seq[Any], expected: Seq[Any], ordered: Boolean): (Seq[String], Seq[String])

Attributes

Returns

the diffs for sequences with missing / added values