def test_2_2_tokens(self): mat = sol.matrix() mat[0][1] = 'X' mat[1][1] = 'X' mat[0][0] = 'X' mat[1][0] = 'X' self.assertEqual(False, sol.check_column(mat, 'X'))
def test_1_2__1_3_tokens(self): mat = sol.matrix() mat[0][0] = 'X' mat[1][0] = 'X' mat[0][1] = 'O' mat[1][1] = 'O' mat[2][1] = 'O' self.assertEqual(True, sol.check_column(mat, 'O'))
def test_0_token(self): mat = sol.matrix() mat[0][0] = 'X' mat[2][2] = 'X' self.assertEqual(False, sol.check_column(mat, 'X'))