Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")