示例#1
0
文件: tests.py 项目: Zarkonnen/Sudoku
 def test_valid_subgrid(self):
     self.assertTrue(sudoku.valid_subgrid(self.sudokuGrid, 1, 2))
     self.sudokuGrid[4][7] = [4]
     self.assertFalse(sudoku.valid_subgrid(self.sudokuGrid, 1, 2))
示例#2
0
文件: tests.py 项目: bellisk/Sudoku
	def test_valid_subgrid(self):
		self.assertTrue(sudoku.valid_subgrid(sudoku.listify(self.sudokuGrid), 1, 2))
		self.sudokuGridListified[4][7] = 4
		self.assertFalse(sudoku.valid_subgrid(self.sudokuGridListified, 1, 2))