def testStateAfterListen(self):
game = Game()
# testing 10 times to account for uncertainty
for i in range(10):
old_state = game.getState()
game.respond("listen")
new_state = game.getState()
self.assertFalse(old_state != new_state)
评论列表
文章目录