Fixing syntax in tests

This commit is contained in:
Charles Peyrat 2021-01-08 15:55:26 +01:00
parent 5424c7cd98
commit f240cafa83
1 changed files with 2 additions and 1 deletions

View File

@ -28,5 +28,6 @@ class TestRandomWalk(unittest.TestCase):
y, x = queue.pop()
if m.tiles[y][x].can_walk():
m.tiles[y][x] = Tile.WALL
queue += m.neighbourhood(y, x)
queue += Map.neighbourhood(m.tiles, y, x)
self.assertFalse(any([any([t.can_walk() for t in l]) for l in m.tiles]))