def test_medium_sudoku_validator(medium_sudoku): """Test sudoku_validator returns correct result.""" from sudoku_validator import Sudoku medium_sudoku = Sudoku(medium_sudoku) assert medium_sudoku.is_valid() == False
def test_solved_sudoku_validator(solved_sudoku): """Test solved sudoku to make sure validtor works.""" from sudoku_validator import Sudoku solved_sudoku = Sudoku(solved_sudoku) assert solved_sudoku.is_valid() == True
def test_kata4_sudoku_validator(kata4_sudoku): """Test sudoku_validator returns correct result.""" from sudoku_validator import Sudoku kata4_sudoku = Sudoku(kata4_sudoku) assert kata4_sudoku.is_valid() == True
def valid_sudoku_1x1(): from sudoku_validator import Sudoku new_sudoku = Sudoku(one_by_one) return new_sudoku
def ivalid_sudoku_true(): from sudoku_validator import Sudoku new_sudoku = Sudoku(one_value_true) return new_sudoku
def invalid_sudoku_not_symmetric(): from sudoku_validator import Sudoku new_sudoku = Sudoku(invalid_m_not_symmetric) return new_sudoku
def valid_sudoku_4x4(): from sudoku_validator import Sudoku new_sudoku = Sudoku(four_by_four) return new_sudoku
def invalid_sudoku_float(): from sudoku_validator import Sudoku new_sudoku = Sudoku(invalid_m_float) return new_sudoku
def invalid_sudoku(): from sudoku_validator import Sudoku new_sudoku = Sudoku(invalid_m_str) return new_sudoku
def valid_sudoku(): from sudoku_validator import Sudoku new_sudoku = Sudoku(valid_m) return new_sudoku
def test_sudoku_validator(): """Test sudoku_validator returns correct result.""" from sudoku_validator import Sudoku valid_sudoku = Sudoku(invalid_last_column) assert valid_sudoku.is_valid() == False
def test_sudoku_validator(): """Test sudoku_validator returns correct result.""" from sudoku_validator import Sudoku valid_sudoku = Sudoku(valid_2) assert valid_sudoku.is_valid() == True