def test_removeLatestSquare_resultsHadOneEntry_resultsHasNoEntries(self): queenSolver = QueenSolver() queenSolver.addSquareToResults(Square(ord('A'), 1)) self.assertEqual(len(queenSolver.results), 1) queenSolver.removeLatestSquare() self.assertEqual(len(queenSolver.results), 0)
def test_removeLatestSquare_resultsHadOneEntry_resultsHasNoEntries(self): queenSolver = QueenSolver() queenSolver.addSquareToResults(Square(ord('A'), 1)) self.assertEqual(len(queenSolver.results), 1) queenSolver.removeLatestSquare() self.assertEqual(len(queenSolver.results), 0)
def test_removeLatestSquare_resultsWasEmpty_noErrorThrow(self): queenSolver = QueenSolver() queenSolver.removeLatestSquare()
def test_removeLatestSquare_resultsWasEmpty_noErrorThrow(self): queenSolver = QueenSolver() queenSolver.removeLatestSquare()