Beispiel #1
0
 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'))
Beispiel #2
0
 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'))
Beispiel #3
0
 def test_0_token(self):
     mat = sol.matrix()
     mat[0][0] = 'X'
     mat[2][2] = 'X'
     self.assertEqual(False, sol.check_column(mat, 'X'))