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)
For anything else, it returns the result of invoking toString
.
Companion object for
Prettifier
that provides a defaultPrettifier
implementation.