def test_four_player_group(self): scores = [4, 3, 2, 1] self.assertEqual(4, decide_points(scores, 4)) self.assertEqual(2, decide_points(scores, 3)) self.assertEqual(1, decide_points(scores, 2)) self.assertEqual(0, decide_points(scores, 1))
def test_four_player_group(self): scores = [4,3,2,1] self.assertEqual(4, decide_points(scores, 4)) self.assertEqual(2, decide_points(scores, 3)) self.assertEqual(1, decide_points(scores, 2)) self.assertEqual(0, decide_points(scores, 1))
def test_two_player_group(self): scores = [4, 3] self.assertEqual(4, decide_points(scores, 4)) self.assertEqual(0, decide_points(scores, 3))
def test_three_player_group(self): scores = [4, 3, 2] self.assertEqual(4, decide_points(scores, 4)) self.assertEqual(2, decide_points(scores, 3)) self.assertEqual(0, decide_points(scores, 2))
def test_two_player_group(self): scores = [4,3] self.assertEqual(4, decide_points(scores, 4)) self.assertEqual(0, decide_points(scores, 3))
def test_three_player_group(self): scores = [4,3,2] self.assertEqual(4, decide_points(scores, 4)) self.assertEqual(2, decide_points(scores, 3)) self.assertEqual(0, decide_points(scores, 2))