示例#1
0
 def test_put_already_filled(self):
     board = Board()
     x, y = 1, 1
     board.put(x, y, Sign.x)
     self.assertRaises(IndexError, board.put, x, y, Sign.x)
示例#2
0
文件: tests.py 项目: jchmura/PiE
 def test_put_already_filled(self):
     board = Board()
     x, y = 1, 1
     board.put(x, y, Sign.x)
     self.assertRaises(IndexError, board.put, x, y, Sign.x)
示例#3
0
 def test_put(self):
     board = Board()
     x, y = 2, 1
     board.put(x, y, Sign.x)
     self.assertEqual(Sign.x, board.board[x][y])
示例#4
0
文件: tests.py 项目: jchmura/PiE
 def test_put(self):
     board = Board()
     x, y = 2, 1
     board.put(x, y, Sign.x)
     self.assertEqual(Sign.x, board.board[x][y])