Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3cc9d79

Browse files
authoredFeb 3, 2022
Merge branch 'main' into update/scala-library-2.13.8
2 parents 3a6cbd3 + 5b0b04e commit 3cc9d79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/main/scala/scalatutorial/sections/TailRecursion.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ object TailRecursion extends ScalaTutorialSection {
145145
iter(n, res1)
146146
}
147147

148+
factorial(0) shouldBe 1
148149
factorial(3) shouldBe 6
149150
factorial(4) shouldBe 24
150151
}

0 commit comments

Comments
 (0)
Please sign in to comment.