Ejemplo n.º 1
0
 def test_card_name_from_index_last_of_deck(self):
     cardname = cardname_from_index(deck_test, -1)
     self.assertEqual(cardname, "King of Spades")
Ejemplo n.º 2
0
 def test_card_name_from_index_last_of_clubs(self):
     cardname = cardname_from_index(deck_test, 38)
     self.assertEqual(cardname, "King of Clubs")
Ejemplo n.º 3
0
 def test_card_name_from_index_first_of_spades(self):
     cardname = cardname_from_index(deck_test, 39)
     self.assertEqual(cardname, "Ace of Spades")
Ejemplo n.º 4
0
 def test_card_name_from_index_first_of_clubs(self):
     cardname = cardname_from_index(deck_test, 26)
     self.assertEqual(cardname, "Ace of Clubs")
Ejemplo n.º 5
0
 def test_card_name_from_index_last_of_diamonds(self):
     cardname = cardname_from_index(deck_test, 25)
     self.assertEqual(cardname, "King of Diamonds")
Ejemplo n.º 6
0
 def test_card_name_from_index_first_of_diamonds(self):
     cardname = cardname_from_index(deck_test, 13)
     self.assertEqual(cardname, "Ace of Diamonds")
Ejemplo n.º 7
0
 def test_card_name_from_index_last_of_hearts(self):
     cardname = cardname_from_index(deck_test, 12)
     self.assertEqual(cardname, "King of Hearts")
Ejemplo n.º 8
0
 def test_card_name_from_index_first_of_hearts(self):
     cardname = cardname_from_index(deck_test, 0)
     self.assertEqual(cardname, "Ace of Hearts")