SmartDiffs

org.specs2.main.SmartDiffs
See theSmartDiffs companion object
case class SmartDiffs(show: Boolean, separators: String, triggerSize: Int, shortenSize: Int, diffRatio: Int, showFull: Boolean, seqTriggerSize: Int, seqMaxSize: Int) extends Diffs

The SmartDiffs class holds all the required parameters to show differences between 2 values using the edit distance algorithm

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Diffs
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

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

Attributes

Returns

true if the differences must be shown for 2 different values

def showDiffs(actualValue: Any, expectedValue: Any): (String, String)

Attributes

Returns

the diffs

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 maps

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

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product