Skip to content

Commit

Permalink
updated to newer Scala 3 syntax with fewer braces
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Läufer <[email protected]>
  • Loading branch information
klaeufer committed Aug 27, 2023
1 parent 138d7bb commit 2486012
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/scala/TestBoundingBox.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import Shape.*

class TestBoundingBox extends AnyFunSuite:

def testBoundingBox(description: String, s: Shape, x: Int, y: Int, width: Int, height: Int) =
test(description) {
def testBoundingBox(description: String, s: Shape, x: Int, y: Int, width: Int, height: Int): Unit =
test(description):
val Location(u, v, Rectangle(w, h)) = boundingBox(s)
assert(x == u)
assert(y == v)
assert(width == w)
assert(height == h)
}

// TODO comment these tests back in

Expand Down

0 comments on commit 2486012

Please sign in to comment.