fix the cell pydantic cause the program was too long

This commit is contained in:
Maoake Teriierooiterai
2026-03-24 15:34:43 +01:00
parent 993bcce857
commit c478400640
2 changed files with 9 additions and 12 deletions
+4 -9
View File
@@ -1,19 +1,14 @@
import numpy
from amaz_lib.MazeGenerator import DepthFirstSearch
from amaz_lib.MazeGenerator import Kruskal
class TestMazeGenerator:
def test_kruskal_output_shape() -> None:
generator = Kruskal().generator(10, 10)
def test_generator(self) -> None:
w_h = (300, 300)
maze = numpy.array([])
generator = DepthFirstSearch().generator(*w_h)
for output in generator:
maze = output
assert maze.shape == (10, 10)
def test_generator(self) -> None:
maze = numpy.array([])
maze = DepthFirstSearch.generator(10, 10)
assert maze.shape == (10, 10)
assert maze.shape == w_h