Hi
I have the follwing block of code:
test("average of points list") {
intercept[IllegalArgumentException] {
// average of empty list should throw exception
val points = List()
val averagePoint = Point3D.averagePoint(points)
}
}
If I auto format the code by selecting and pressing Ctril+I I get:
test("average of points list") {
intercept[IllegalArgumentException] {
// average of empty list should throw exception
val points = List()
val averagePoint = Point3D.averagePoint(points)
}
}
Why does it assign a large indent to?:
val averagePoint = Point3D.averagePoint(points)
Thanks
Graham