コード例 #1
0
 def test_discarding_card_adds_clock_to_max_8(self):
     h = HanabiGame(2, 'aaaaa')
     h.inform(1, "1")
     clocks = h.clocks
     h.discard(0)
     self.assertEqual(clocks + 1, h.clocks, "discarding card adds a clock")
     h.add_clock()
     self.assertEqual(h.clocks, 8, "clocks can't be added above 8")
コード例 #2
0
 def test_informing_costs_clock(self):
     h = HanabiGame(2, 'aaaaa')
     clocks = h.clocks
     h.inform(1, "1")
     self.assertEqual(clocks - 1, h.clocks)