Stash.get_winner fix

This commit is contained in:
Jakub Senderák
2020-03-28 07:19:29 +01:00
parent 9885571222
commit ada5d74fd4
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -65,11 +65,11 @@ class StashCase(unittest.TestCase):
# highest heart takes the stash
heart_upper = Card(Card_colors['HEARTS'], Card_values['UPPER'])
c4 = [leaves_8, leaves_lower, heart_7, heart_upper]
c4 = [leaves_8, leaves_lower, heart_upper, heart_7]
s4 = Stash(0)
for i in range(4):
s4.add_card(i, c4[i])
self.assertEqual(s4.get_winner(), 3)
self.assertEqual(s4.get_winner(), 2)
# test exceptions
s5 = Stash(3)