Skip to content

Commit

Permalink
Merge pull request #33 from cstuncsik/traversable-stream-exercise
Browse files Browse the repository at this point in the history
fix(test): fixes #31
  • Loading branch information
raulraja authored Jun 28, 2016
2 parents 57e88bf + b44dccd commit 833496b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/stdlib/Traversables.scala
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ object Traversables extends FlatSpec with Matchers with exercise.Section {

/** `toStream` will convert any *Traversable* to a `Stream` which is a lazy list where elements are evaluated as they are needed.
*/
def toStreamFunctionTraversables(res0: Boolean, res1: List[Int]) {
def toStreamFunctionTraversables(res0: Boolean, res1: Stream[Int]) {
val list = List(4, 6, 7, 8, 9, 13, 14)
val result = list.toStream
result.isInstanceOf[Stream[_]] should be(res0)
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/exercises/stdlib/TraversablesSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class TraversablesSpec extends Spec with Checkers {
check(
Test.testSuccess(
Traversables.toStreamFunctionTraversables _,
true :: List(4, 6, 7) :: HNil
true :: Stream(4, 6, 7) :: HNil
)
)
}
Expand Down

0 comments on commit 833496b

Please sign in to comment.