def test_addDiagonalsToUnavailable_C4_11Unavailable(self): queenSolver = QueenSolver() queenSolver.addDiagonalsToUnavailable(Square(ord('C'),4)) self.assertEqual(len(queenSolver.unavailableSquare),11)
def test_addDiagonalsToUnavailable_C4_11Unavailable(self): queenSolver = QueenSolver() queenSolver.addDiagonalsToUnavailable(Square(ord('C'), 4)) self.assertEqual(len(queenSolver.unavailableSquare), 11)
def test_addDiagonalsToUnavailable_H8_7Unavailable(self): queenSolver = QueenSolver() queenSolver.addDiagonalsToUnavailable(Square(ord('H'),8)) self.assertEqual(len(queenSolver.unavailableSquare),7)
def test_addDiagonalsToUnavailable_H8_7Unavailable(self): queenSolver = QueenSolver() queenSolver.addDiagonalsToUnavailable(Square(ord('H'), 8)) self.assertEqual(len(queenSolver.unavailableSquare), 7)