def test_solve_hidden_pairs(self): test_hidden_pairs = Puzzle(hidden_pairs) self.assertEqual(test_hidden_pairs.solve(), hidden_pairs_solution)
def test_solve_2_3(self): test_2_3 = Puzzle(twins_and_triples) self.assertEqual(test_2_3.solve(), twins_and_triples_solution)
def test_solve_naked_pairs(self): test_naked_pairs = Puzzle(naked_pairs) self.assertEqual(test_naked_pairs.solve(), naked_pairs_solution)
def test_solve_pointing_pair(self): test_pointing_pairs = Puzzle(pointing_pair) self.assertEqual(test_pointing_pairs.solve(), pointing_pair_solution)
def test_solve_1(self): test_pairs = Puzzle(singles_only_1) self.assertEqual(test_pairs.solve(), singles_only_1_solution)
def test_solve(self): test_singles = Puzzle(singles_only) self.assertEqual(test_singles.solve(), singles_only_solution)
def test_info(self): p = Puzzle(singles_only) self.assertEqual(p.info(), singles_only_info)