Skip to content

Commit b44dccd

Browse files
author
Csaba Tuncsik
committed
fix(test): fixes #31
1 parent 1fda8c6 commit b44dccd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/scala/stdlib/Traversables.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ object Traversables extends FlatSpec with Matchers with exercise.Section {
146146

147147
/** `toStream` will convert any *Traversable* to a `Stream` which is a lazy list where elements are evaluated as they are needed.
148148
*/
149-
def toStreamFunctionTraversables(res0: Boolean, res1: List[Int]) {
149+
def toStreamFunctionTraversables(res0: Boolean, res1: Stream[Int]) {
150150
val list = List(4, 6, 7, 8, 9, 13, 14)
151151
val result = list.toStream
152152
result.isInstanceOf[Stream[_]] should be(res0)

src/test/scala/exercises/stdlib/TraversablesSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class TraversablesSpec extends Spec with Checkers {
130130
check(
131131
Test.testSuccess(
132132
Traversables.toStreamFunctionTraversables _,
133-
true :: List(4, 6, 7) :: HNil
133+
true :: Stream(4, 6, 7) :: HNil
134134
)
135135
)
136136
}

0 commit comments

Comments
 (0)