Example #1
0
 def test_complete_subgrid(self):
     self.assertFalse(sudoku.complete_subgrid(self.sudokuGrid, 0, 1))
     self.sudokuGrid[0] = [[4],[ ],[7],[9],[1],[2],[6],[3],[ ]]
     self.sudokuGrid[1] = [[ ],[3],[ ],[8],[4],[7],[ ],[ ],[9]]
     self.sudokuGrid[2] = [[ ],[ ],[ ],[5],[6],[3],[ ],[ ],[ ]]
     self.assertTrue(sudoku.complete_subgrid(self.sudokuGrid, 0, 1))
Example #2
0
	def test_complete_subgrid(self):
		self.assertFalse(sudoku.complete_subgrid(self.sudokuGridListified, 0, 1))
		self.sudokuGridListified[0] = [4,0,7,9,1,2,6,3,0]
		self.sudokuGridListified[1] = [0,3,0,8,4,7,0,0,9]
		self.sudokuGridListified[2] = [0,0,0,5,6,3,0,0,0]
		self.assertTrue(sudoku.complete_subgrid(self.sudokuGridListified, 0, 1))