A basic Prettifier
.
A basic Prettifier
.
This was the default Prettifier
used in ScalaTest 2.0 release.
It transforms:
Null
to: null
Unit
to: <() the Unit value>
String
to: "string"
(the toString
result surrounded by double quotes)Char
to: 'c'
(the toString
result surrounded by single quotes)Array
to: Array("1", "2", "3")
scala.util.Some
to: Some("3")
For anything else, it returns the result of invoking toString
.
A default Prettifier
.
A default Prettifier
.
This default Prettifier
is used in ScalaTest to clarify error messages.
It transforms:
Null
to: null
Unit
to: <() the Unit value>
String
to: "string"
(the toString
result surrounded by double quotes)Char
to: 'c'
(the toString
result surrounded by single quotes)Array
to: Array("1", "2", "3")
scala.Some
to: Some("3")
scala.util.Left
to: Left("3")
scala.util.Right
to: Right("3")
scala.util.Success
to: Success("3")
org.scalautils.Good
to: Good("3")
org.scalautils.Bad
to: Bad("3")
org.scalautils.One
to: One("3")
org.scalautils.Many
to: Many("1", "2", "3")
scala.collection.GenTraversable
to: List("1", "2", "3")
java.util.Collection
to: ["1", "2", "3"]
java.util.Map
to: {1="one", 2="two", 3="three"}
For anything else, it returns the result of invoking toString
.
Companion object for
Prettifier
that provides a defaultPrettifier
implementation.