Stash.get_winner fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user