def test_draw_larger_board(): brd = [ ["x", "x", "x", "o"], ["o", "o", "x", "o"], ["x", "x", "x", "o"], ["o", "x", "o", "x"], ] assert tic_tac_toe_checker(brd) == "draw!"
def test_o_wins_larger_board(): brd = [ ["x", "x", "-", "o"], ["o", "-", "o", "o"], ["x", "o", "x", "x"], ["o", "x", "o", "-"], ] assert tic_tac_toe_checker(brd) == "o wins!"
def test_unfinished_game_larger_board(): brd = [ ["x", "x", "-", "o"], ["o", "-", "x", "o"], ["x", "o", "x", "x"], ["o", "x", "o", "-"], ] assert tic_tac_toe_checker(brd) == "unfinished!"
def test_o_wins_vertical(): brd = [["x", "x", "o"], ["-", "o", "o"], ["x", "x", "o"]] assert tic_tac_toe_checker(brd) == "o wins!"
def test_x_wins_horizontal(): brd = [["-", "-", "o"], ["-", "o", "o"], ["x", "x", "x"]] assert tic_tac_toe_checker(brd) == "x wins!"
def test_draw(): brd = [["o", "x", "o"], ["o", "x", "x"], ["x", "o", "o"]] assert tic_tac_toe_checker(brd) == "draw!"
def test_unfinished_game(): brd = [["x", "-", "o"], ["-", "o", "o"], ["-", "x", "x"]] assert tic_tac_toe_checker(brd) == "unfinished!"
def test_o_wins_side_diagonal(): brd = [["x", "-", "o"], ["-", "o", "o"], ["o", "x", "x"]] assert tic_tac_toe_checker(brd) == "o wins!"
def test_x_wins_main_diagonal(): brd = [["x", "o", "o"], ["o", "x", "o"], ["x", "-", "x"]] assert tic_tac_toe_checker(brd) == "x wins!"