From 87a7d5ce60c5041ad366e0fb079ffe5fc237d46f Mon Sep 17 00:00:00 2001 From: Bryson Zimmerman Date: Fri, 25 Oct 2024 23:19:20 -0400 Subject: [PATCH] Get MazeFinderTest to compile, although it will still fail --- src/test/kotlin/MazeFinderTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/kotlin/MazeFinderTest.kt b/src/test/kotlin/MazeFinderTest.kt index 9e4d1fc..ef782f5 100644 --- a/src/test/kotlin/MazeFinderTest.kt +++ b/src/test/kotlin/MazeFinderTest.kt @@ -42,7 +42,7 @@ class MazeFinderTest { col -> col.forEach { tile -> - assert(tile.visited) + assert(tile.visited()) } } } @@ -54,9 +54,9 @@ class MazeFinderTest { col -> col.forEachIndexed { y, tileprop -> - if(tileprop.connections.isEmpty()) + if(!tileprop.visited()) println("Empty Connections at: " + Tile(x, y).toString()) - assert(tileprop.connections.isNotEmpty()) + assert(tileprop.visited()) } } }