Exemplo n.º 1
0
    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))
Exemplo n.º 2
0
    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))
Exemplo n.º 3
0
    def test_two_player_group(self):
        scores = [4, 3]

        self.assertEqual(4, decide_points(scores, 4))
        self.assertEqual(0, decide_points(scores, 3))
Exemplo n.º 4
0
    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))
Exemplo n.º 5
0
    def test_two_player_group(self):
        scores = [4,3]

        self.assertEqual(4, decide_points(scores, 4))
        self.assertEqual(0, decide_points(scores, 3))
Exemplo n.º 6
0
    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))