We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b81c24 + c7cadbf commit 5575a61Copy full SHA for 5575a61
src/main/scala/scalatutorial/sections/DefinitionsAndEvaluation.scala
@@ -220,7 +220,7 @@ object DefinitionsAndEvaluation extends ScalaTutorialSection {
220
def triangleArea(base: Double, height: Double): Double =
221
base * height / res0
222
223
- triangleArea(3, 4) shouldBe 6
+ triangleArea(3, 4) shouldBe 6.0
224
triangleArea(5, 6) shouldBe res1
225
}
226
0 commit comments