From 248601219553f4bdacfe68702809fee619e6a3b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20L=C3=A4ufer?= Date: Sun, 27 Aug 2023 18:04:42 -0500 Subject: [PATCH] updated to newer Scala 3 syntax with fewer braces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Konstantin Läufer --- src/test/scala/TestBoundingBox.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/scala/TestBoundingBox.scala b/src/test/scala/TestBoundingBox.scala index 0cbeb3b..ddbefd2 100644 --- a/src/test/scala/TestBoundingBox.scala +++ b/src/test/scala/TestBoundingBox.scala @@ -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