def test_straight_count8_7_pos(self): rankcount = [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0] self.assertEqual(straight_count(rankcount, 8), [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1])
def test_straight_count7_8_neg(self): rankcount = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0] self.assertEqual(straight_count(rankcount, 6), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
def test_straight_count5_10_pos_4(self): rankcount = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 3, 1, 0] self.assertEqual(straight_count(rankcount, 5), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6])
def test_straight_count5_10_pos_5(self): rankcount = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 3, 1, 3, 0] self.assertEqual(straight_count(rankcount, 5), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 72])
def test_straight_count5_10_pos_3(self): rankcount = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 1, 1, 0] self.assertEqual(straight_count(rankcount, 5), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4])