def test_solve_ex2(): ex2 = Puzzle() ex2.puzzle = [[x for x in row] for row in ex2_puzzle.split('\n')] ex2.words = 'AGRA;NORWAY;ENGLAND;GWALIOR'.split(';') ex2.solve_this((0, 1), VERTICAL)
def test_solve(): ex1 = Puzzle() ex1.puzzle = [[x for x in row] for row in ex1_puzzle.split('\n')] ex1.words = 'LONDON;DELHI;ICELAND;ANKARA'.split(';') ex1.solve_this((0, 1), VERTICAL)