示例#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))
示例#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))
示例#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))
示例#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))
示例#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))
示例#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))