import unittest
import src.Backtracking.NQueens as NQueens


class NQueensTest(unittest.TestCase):

    def test_iterative_solution(self):
        solver = NQueens.NQueensSolverIterative(8)
        solution = solver.solve()
        self.assertEqual(len(solution), 8)
        self.assertEqual(all(solution[i] != solution[j] and j - i != abs(
            solution[i] - solution[j]) for i in range(8) for j in range(i +
            1, 8)), True)


if __name__ == '__main__':
    unittest.main()

863e16bdbd97606a187642ed9223f9c482d19a1a
<mask token>


class NQueensTest(unittest.TestCase):
    <mask token>


<mask token>

<mask token>


class NQueensTest(unittest.TestCase):

    def test_iterative_solution(self):
        solver = NQueens.NQueensSolverIterative(8)
        solution = solver.solve()
        self.assertEqual(len(solution), 8)
        self.assertEqual(all(solution[i] != solution[j] and j - i != abs(
            solution[i] - solution[j]) for i in range(8) for j in range(i +
            1, 8)), True)


<mask token>

<mask token>


class NQueensTest(unittest.TestCase):

    def test_iterative_solution(self):
        solver = NQueens.NQueensSolverIterative(8)
        solution = solver.solve()
        self.assertEqual(len(solution), 8)
        self.assertEqual(all(solution[i] != solution[j] and j - i != abs(
            solution[i] - solution[j]) for i in range(8) for j in range(i +
            1, 8)), True)


if __name__ == '__main__':
    unittest.main()

import unittest
import src.Backtracking.NQueens as NQueens


class NQueensTest(unittest.TestCase):

    def test_iterative_solution(self):
        solver = NQueens.NQueensSolverIterative(8)
        solution = solver.solve()
        self.assertEqual(len(solution), 8)
        self.assertEqual(all(solution[i] != solution[j] and j - i != abs(
            solution[i] - solution[j]) for i in range(8) for j in range(i +
            1, 8)), True)


if __name__ == '__main__':
    unittest.main()
