Skip to content

Commit

Permalink
Trying to make code coverage more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Jan 30, 2022
1 parent 53e0e41 commit 2b5e737
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions test/test_maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ def test_inner_entrances(self):

def test_outer_entrances(self):
"""Test that the entrances can be correctly generated on the edges of the map"""
h = 4
w = 5
h = 3
w = 3

for _ in range(10):
for _ in range(20):
m = Maze()
m.generator = Prims(h, w)
m.generate()
Expand All @@ -91,15 +91,16 @@ def test_generator_wipe(self):
h = 4
w = 5

m = Maze()
m.generator = Prims(h, w)
m.generate()
m.generate_entrances()
m.generate()
for _ in range(10):
m = Maze()
m.generator = Prims(h, w)
m.generate()
m.generate_entrances()
m.generate()

assert m.start is None
assert m.end is None
assert m.solutions is None
assert m.start is None
assert m.end is None
assert m.solutions is None

def test_monte_carlo(self):
"""Test that the basic Monte Carlo maze generator"""
Expand Down

0 comments on commit 2b5e737

Please sign in to comment.