mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-28 16:04:35 +02:00
pytest test_MazeGenerator
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import numpy
|
||||
from amaz_lib.MazeGenerator import Kruskal
|
||||
|
||||
|
||||
def test_kruskal_output_shape() -> None:
|
||||
generator = Kruskal()
|
||||
maze = numpy.array([])
|
||||
for output in generator.generator(10, 10):
|
||||
maze = output
|
||||
|
||||
assert maze.shape == (10, 10)
|
||||
Reference in New Issue
Block a user