Fixed rolling stone overanxious transpose bug.

This commit is contained in:
Niels Serup
2012-08-09 14:23:08 +02:00
parent 781573dd9d
commit f05a1ab895
3 changed files with 13 additions and 9 deletions

View File

@@ -36,10 +36,10 @@ class RollingStoneTest(unittest.TestCase):
reaches_goal(playfield, 10, 10, steps, (0, 0), (9, 9)))
print()
playfield, steps = generate_simple_playfield(10, 10, 4, 11)
print_playfield(playfield, 10, 10, True)
playfield, steps = generate_simple_playfield(10, 15, 4, 150)
print_playfield(playfield, 10, 15, False)
self.assertTrue(
reaches_goal(playfield, 10, 10, steps, (0, 0), (9, 9)))
reaches_goal(playfield, 10, 15, steps, (0, 0), (9, 14)))
if __name__ == '__main__':
unittest.main()