コード例 #1
0
	def test_addDiagonalsToUnavailable_C4_11Unavailable(self):
		queenSolver = QueenSolver()
		queenSolver.addDiagonalsToUnavailable(Square(ord('C'),4))
		self.assertEqual(len(queenSolver.unavailableSquare),11)
コード例 #2
0
 def test_addDiagonalsToUnavailable_C4_11Unavailable(self):
     queenSolver = QueenSolver()
     queenSolver.addDiagonalsToUnavailable(Square(ord('C'), 4))
     self.assertEqual(len(queenSolver.unavailableSquare), 11)
コード例 #3
0
	def test_addDiagonalsToUnavailable_H8_7Unavailable(self):
		queenSolver = QueenSolver()
		queenSolver.addDiagonalsToUnavailable(Square(ord('H'),8))
		self.assertEqual(len(queenSolver.unavailableSquare),7)
コード例 #4
0
 def test_addDiagonalsToUnavailable_H8_7Unavailable(self):
     queenSolver = QueenSolver()
     queenSolver.addDiagonalsToUnavailable(Square(ord('H'), 8))
     self.assertEqual(len(queenSolver.unavailableSquare), 7)