def test_correct_sudoku_A(self): sdm_file = "data/filled-invalid_number.sdm" sudoku_set = format.SudokuSet(open(sdm_file)) sudoku = sudoku_set.get(0) self.assertFalse(format.is_correct(sudoku))
def test_correct_sudoku_square(self): sdm_file = "data/filled_square.sdm" sudoku_set = format.SudokuSet(open(sdm_file)) sudoku = sudoku_set.get(0) self.assertFalse(format.is_correct(sudoku))
def test_correct_sudoku_ok(self): sdm_file = "data/filled.sdm" sudoku_set = format.SudokuSet(open(sdm_file)) sudoku = sudoku_set.get(0) self.assertTrue(format.is_correct(sudoku))