From 696199a0227cfccb2247978b1ba8c1b03f1ae26d Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Mon, 11 Nov 2024 15:52:22 +0100 Subject: initial commit --- tests.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tests.py (limited to 'tests.py') diff --git a/tests.py b/tests.py new file mode 100755 index 0000000..f233699 --- /dev/null +++ b/tests.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import unittest + +from maze import Maze + +class Tests(unittest.TestCase): + def test_maze_create_cells(self): + num_cols = 12 + num_rows = 10 + m1 = Maze(0, 0, num_rows, num_cols, 10, 10) + self.assertEqual( + len(m1._cells), + num_cols + ) + self.assertEqual( + len(m1._cells[0]), + num_rows + ) + +if __name__ == "__main__": + unittest.main() -- cgit v1.2.3