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.
1 parent 4b81c24 commit c7cadbfCopy full SHA for c7cadbf
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