Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
createSnippet[T](rangepos: Boolean, expression: String, code: ⇒ T, params: SnippetParams[T]): Snippet[T]
-
implicit
def
defaultSnippetParameters[T]: SnippetParams[T]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
fullName[T](implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
simpleName[T](implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): String
-
def
snippet[T](code: ⇒ T)(implicit params: SnippetParams[T]): Snippet[T]
-
implicit
def
snippetIsSpecPart[T](snippet: Snippet[T]): SpecPart
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
termName(m: Any): String
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Snippets of code can be extracted from interpolated specification strings.
When you want to specify that a piece of code must be included in the specification output, you can use the
snippet
method to execute a this code and use the text in the output. If you just want to output part of the code you need to delimit it with some comments// 8<-------
(with as many dashes as you want)Generally the last value of a snippet will be displayed separately but it is possible to avoid this by using the
mute
method on a Snippet.It is also possible to check that the result value is equal to a specific value by using the
check[R : AsResult](f: T => R)
method.