def test_subset_invalid_row(): board = Board(INVALID_BOARD_ARR) assert is_subset_valid(board.get_row(0)) is False
def test_subset_valid_row(): board = Board(VALID_BOARD_ARR) assert is_subset_valid(board.get_row(0)) is True
def test_board_get_rows(): board = Board(EMPTY_BOARD_ARR) assert np.array_equal(board.get_row(2), np.array([2, 5, 0, 1, 0, 0, 4, 7, 0])) assert np.array_equal(board.get_row(8), np.array([0, 0, 0, 4, 5, 2, 1, 9, 7]))