LinesContentDifference

org.specs2.text.LinesContentDifference
See theLinesContentDifference companion object
case class LinesContentDifference(lines1: Seq[String], lines2: Seq[String], all: Boolean, ordered: Boolean) extends ContentDifference

This class shows the differences between 2 sequences of lines.

  • if all is false we expect possibly more lines in lines2
  • if ordered is false we expect the lines of lines1 to appear in any order in lines2

Attributes

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

Members list

Type members

Types

Value members

Concrete methods

def isEmpty: Boolean

Attributes

Returns

true if there is no difference in 2 contents

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val numberedLines1: IndexedSeq[NumberedLine]
val numberedLines2: IndexedSeq[NumberedLine]
lazy val show: Seq[Difference]

Attributes

Returns

a list of differences between content1 and content2