def test_swap_2_cards(self): B = Baraja() B.swap_2_cards((1, 0), Naipe((13, 3))) self.assertEqual(B.index((13, 3)), 0) self.assertEqual(B.index((1, 0)), 51) # Swap same card B.swap_2_cards((1, 0), Naipe((1, 0))) self.assertEqual(B.index((1, 0)), 51)
def test_baraja_index2(self): B = Baraja() carta = Naipe((2, 0)) ind = B.index(carta) self.assertEqual(ind, 4)
def test_baraja_index1(self): B = Baraja() ind = B.index((2, 0)) self.assertEqual(ind, 4)