from src.codewars.kata_tic_tac_toe_checker import is_solved import pytest @pytest.mark.parametrize( ("board", "expected"), [ ([[0, 0, 1], [0, 1, 2], [2, 1, 0]], -1), ([[1, 1, 1], [0, 2, 2], [0, 0, 0]], 1), ([[2, 1, 2], [2, 1, 1], [1, 1, 2]], 1), ([[2, 1, 2], [2, 1, 1], [1, 2, 1]], 0), ([[1, 1, 1], [0, 2, 2], [0, 0, 0]], 1), ([[2, 1, 1], [0, 1, 1], [2, 2, 2]], 2), ([[1, 2, 1], [1, 1, 2], [2, 1, 2]], 0), ], ) def test_is_solved(board, expected): assert is_solved(board) == expected