@@ -471,14 +471,14 @@ responsible for generating the individual items. You can use it in the
471471following way:
472472
473473``` scala
474- val genIntList = Gen .containerOf[List ,Int ](Gen .oneOf(1 , 3 , 5 ))
474+ val genIntList = Gen .containerOf[List ,Int ](Gen .oneOf(1 , 3 , 5 ))
475475
476- val genStringStream = Gen .containerOf[Stream ,String ](Gen .alphaStr)
476+ val genStringLazyList = Gen .containerOf[LazyList ,String ](Gen .alphaStr)
477477
478- val genBoolArray = Gen .containerOf[Array ,Boolean ](true )
478+ val genBoolArray = Gen .containerOf[Array ,Boolean ](true )
479479```
480480
481- By default, ScalaCheck supports generation of ` List ` , ` Stream ` , ` Set ` , ` Array ` ,
481+ By default, ScalaCheck supports generation of ` List ` , ` LazyList ` , ` Set ` , ` Array ` ,
482482and ` ArrayList ` (from ` java.util ` ). You can add support for additional
483483containers by adding implicit ` Buildable ` instances. See ` Buildable.scala ` for
484484examples.
@@ -778,7 +778,7 @@ can also define default shrinking methods. This is done by defining an implicit
778778method that returns a ` Shrink[T] ` instance. This is done by using the
779779` Shrink(...) ` factory method, which as its only parameter takes a function and
780780returns an instance of ` Shrink[T] ` . In turn, the function should take a value
781- of the given type ` T ` , and return a ` Stream ` of shrank variants of the given
781+ of the given type ` T ` , and return a ` LazyList ` of shrank variants of the given
782782value. As an example, look at the implicit ` Shrink ` instance for a tuple as it
783783is defined in ScalaCheck:
784784
@@ -873,15 +873,15 @@ object CounterSpecification extends Commands {
873873 * (a singleton [[Sut ]]), implement this method the following way:
874874 *
875875 * {{{
876- * def canCreateNewSut(newState: State, initSuts: Traversable [State]
877- * runningSuts: Traversable [Sut]
876+ * def canCreateNewSut(newState: State, initSuts: Iterable [State]
877+ * runningSuts: Iterable [Sut]
878878 * ) = {
879879 * initSuts.isEmpty && runningSuts.isEmpty
880880 * }
881881 * }}}
882882 */
883- def canCreateNewSut (newState : State , initSuts : Traversable [State ],
884- runningSuts : Traversable [Sut ]): Boolean = true
883+ def canCreateNewSut (newState : State , initSuts : Iterable [State ],
884+ runningSuts : Iterable [Sut ]): Boolean = true
885885
886886 /** The precondition for the initial state, when no commands yet have
887887 * run. This is used by ScalaCheck when command sequences are shrinked
0 commit comments