Add testing for the no_lone_walls option
This commit is contained in:
		@@ -9,7 +9,10 @@ from squirrelbattle.mapgeneration import randomwalk
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class TestRandomWalk(unittest.TestCase):
 | 
					class TestRandomWalk(unittest.TestCase):
 | 
				
			||||||
    def setUp(self) -> None:
 | 
					    def setUp(self) -> None:
 | 
				
			||||||
        self.generator = randomwalk.Generator()
 | 
					        #we set no_lone_walls to true for 100% coverage
 | 
				
			||||||
 | 
					        params = randomwalk.DEFAULT_PARAMS
 | 
				
			||||||
 | 
					        params["no_lone_walls"] = True
 | 
				
			||||||
 | 
					        self.generator = randomwalk.Generator(params = params)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_starting(self) -> None:
 | 
					    def test_starting(self) -> None:
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user