Skip to content

Commit 6e3c611

Browse files
authored
Correct lazy list expectation
I've replicated this result in a few Scala 2.13 versions. It's not clear to me why in #216, the result seems to be the opposite. This PR is now a bit of a smoke test for that build failure.
1 parent 87be7d0 commit 6e3c611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/scala/scalatutorial/sections/LazyEvaluationSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import shapeless.HNil
2525
class LazyEvaluationSpec extends RefSpec with Checkers {
2626

2727
def `check lazy list range`(): Unit =
28-
check(Test.testSuccess(LazyEvaluation.llRangeExercise _, 4 :: HNil))
28+
check(Test.testSuccess(LazyEvaluation.llRangeExercise _, 3 :: HNil))
2929

3030
def `check lazy val`(): Unit =
3131
check(Test.testSuccess(LazyEvaluation.lazyVal _, "xzyz" :: HNil))

0 commit comments

Comments
 (0)