LoneElementStringWrapper

org.scalatest.LoneElement.LoneElementStringWrapper
final class LoneElementStringWrapper(s: String, prettifier: Prettifier, pos: Position)

Wrapper class that adds a loneElement method to String for which an implicit Collecting[C] is available.

Through the implicit conversion provided by trait LoneElement, this class allows you to make statements like:

"9".loneElement should be ('9')

Value parameters

collecting

a typeclass that enables the loneElement syntax

s

the String to wrap

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def loneElement: Char