jostbr / pymaze

A maze generator, solver and visualizer for Python
MIT License
272 stars 63 forks source link

Fixed some bugs in unittests #35

Closed AshishS-1123 closed 3 years ago

AshishS-1123 commented 3 years ago

Changes Made

Why ?

The test_is_walls_between method implementation

This test should test whether there is a wall between any two cells. In the method, I created a cell which you can imagine to be at the center of a (2x2) maze. I also created 4 other cells, one at each side of this cell (top, bottom, right and left). So, there should be a wall between the cell at the center all the cells at the sides. The test also tests whether wall exists between two neighbouring cells if the common wall between them is removed.

AshishS-1123 commented 3 years ago

@jostbr could you please review this PR as soon as you can? Because i have written some algorithms for generating mazes. But since I am using Python3, I need to use some of the changes made in #35 (related to python 3 compatibility). So I cant create a PR for them unless #35 is merged. Or should I create a PR using the branch test-bug-fixes(used in #35)?