コード例 #1
0
 def test_slope_style_score(self):
     self.assertEqual(94.66,
                      solution.slope_style_score([94, 95, 95, 95, 90]))
     self.assertEqual(80.0,
                      solution.slope_style_score([60, 70, 80, 90, 100]))
     self.assertEqual(93.5,
                      solution.slope_style_score([96, 95.5, 93, 89, 92]))
コード例 #2
0
ファイル: test.py プロジェクト: fyllmax/Programming101
    def test_slope_style_score(self):

        self.assertEqual(94.67, slope_style_score([94, 95, 95, 95, 90]))
        # 94.66
        self.assertEqual(80.0, slope_style_score([60, 70, 80, 90, 100]))
        # 80.0
        self.assertEqual(93.5, slope_style_score([96, 95.5, 93, 89, 92]))
コード例 #3
0
ファイル: tests.py プロジェクト: mileto94/HackBulgaria
 def test_1(self):
     self.assertEqual(94.67, solution.slope_style_score([94, 95, 95, 95, 90]))
コード例 #4
0
ファイル: test.py プロジェクト: h3lgi/HackBulgaria
	def test_slope_style_score_0(self):
		self.assertAlmostEqual(94.66, slope_style_score([94, 95, 95, 95, 90]))
コード例 #5
0
 def test_slope_style_score4(self):
     self.assertEqual(10, solution.slope_style_score([10, 10, 1]))
コード例 #6
0
ファイル: tests.py プロジェクト: snejy/Programming101
 def test_with_float_average(self):
     self.assertEqual(94.66, solution.slope_style_score([94, 95, 95, 95, 90]))
コード例 #7
0
ファイル: tests.py プロジェクト: EmilianStankov/HackBulgaria
 def test_problem_statement_cases(self):
     self.assertEqual(94.66, slope_style_score([94, 95, 95, 95, 90]))
     self.assertEqual(80.0, slope_style_score([60, 70, 80, 90, 100]))
     self.assertEqual(93.5, slope_style_score([96, 95.5, 93, 89, 92]))
コード例 #8
0
 def test_one(self):
     self.assertAlmostEqual(94.66, slope_style_score([94, 95, 95, 95, 90]), places=1)
コード例 #9
0
ファイル: test.py プロジェクト: kakato10/week0_problems
 def test_slope_style_two_highest_and_lowest_scores(self):
     self.assertEqual("%.2f" % round(70), solution.slope_style_score([50, 50, 60, 100, 100]))
コード例 #10
0
ファイル: test.py プロジェクト: kakato10/week0_problems
 def test_slope_style_two_loweset_scores(self):
     self.assertEqual("%.2f" % round(60), solution.slope_style_score([30, 30, 80, 70, 100]))
コード例 #11
0
ファイル: test.py プロジェクト: miAndreev/Programming101-2
 def test_one(self):
     self.assertEquals(94.66, slope_style_score([94, 95, 95, 95, 90]))
コード例 #12
0
 def test_slope_style_score(self):
     self.assertEqual(slope_style_score([94, 95, 95, 95, 90]), 94.66)
     self.assertEqual(slope_style_score([60, 70, 80, 90, 100]), 80.0)
     self.assertEqual(slope_style_score([96, 95.5, 93, 89, 92]), 93.5)
コード例 #13
0
 def test_problem_statement_cases(self):
     self.assertEqual(94.66, slope_style_score([94, 95, 95, 95, 90]))
     self.assertEqual(80.0, slope_style_score([60, 70, 80, 90, 100]))
     self.assertEqual(93.5, slope_style_score([96, 95.5, 93, 89, 92]))
コード例 #14
0
ファイル: test.py プロジェクト: Rosenstoyanov/Week0HW
 def test0(self):
     self.assertEqual(94.67, round(slope_style_score([94, 95, 95, 95, 90]), 2))
コード例 #15
0
 def test_solution(self):
     self.assertEqual(94.66, slope_style_score([94, 95, 95, 95, 90]))
     self.assertEqual(80.0, slope_style_score([60, 70, 80, 90, 100]))
     self.assertEqual(93.5, slope_style_score([96, 95.5, 93, 89, 92]))
コード例 #16
0
ファイル: tests.py プロジェクト: EmanuelStoyanov/homework1
 def test_three(self):
     self.assertEqual(93.5, slope_style_score([96, 95.5, 93, 89, 92]))
コード例 #17
0
ファイル: test.py プロジェクト: kakato10/week0_problems
 def test_slope_style1(self):
     self.assertEqual("%.2f" % round(50), solution.slope_style_score([10, 40, 50, 60, 100]))
コード例 #18
0
 def test_three(self):
     self.assertEqual(93.5, slope_style_score([96, 95.5, 93, 89, 92]))
コード例 #19
0
ファイル: test.py プロジェクト: kakato10/week0_problems
 def test_slope_style_two_highest_scores(self):
     self.assertEqual("%.2f" % round(80), solution.slope_style_score([10, 60, 80, 100, 100]))
コード例 #20
0
ファイル: test.py プロジェクト: smo93/hackbulgaria
 def test_slope_style_score(self):
     self.assertEqual(94.66,\
             solution.slope_style_score([94, 95, 95, 95, 90]))
     self.assertEqual(80.0,\
             solution.slope_style_score([60, 70, 80, 90, 100]))
コード例 #21
0
 def test_slope_style_score3(self):
     self.assertEqual(4, solution.slope_style_score([1, 2, 3, 4, 5, 6, 7]))
コード例 #22
0
ファイル: tests.py プロジェクト: snejy/Programming101
 def test_with_3_elements(self):
     self.assertEqual(2.0, solution.slope_style_score([1,80,2]))
コード例 #23
0
 def test_slope_style_score4(self):
     self.assertEqual(10, solution.slope_style_score([10, 10, 1]))
コード例 #24
0
 def test_slope_style_score3(self):
     self.assertEqual(4, solution.slope_style_score([1, 2, 3, 4, 5, 6, 7]))
コード例 #25
0
 def test_slope_style_score5(self):
     self.assertEqual(2, solution.slope_style_score([1, 2, 3]))
コード例 #26
0
 def test_slope_style_score5(self):
     self.assertEqual(2, solution.slope_style_score([1, 2, 3]))
コード例 #27
0
 def test_slope_style_score_3(self):
     self.assertEqual(93.5,
                      solution.slope_style_score([96, 95.5, 93, 89, 92]))
コード例 #28
0
ファイル: tests.py プロジェクト: mileto94/HackBulgaria
 def test_3(self):
     self.assertEqual(93.5, solution.slope_style_score([96, 95.5, 93, 89, 92]))
コード例 #29
0
 def test_slope_style_score_1(self):
     self.assertEqual(94.67,
                      solution.slope_style_score([94, 95, 95, 95, 90]))
コード例 #30
0
ファイル: tests.py プロジェクト: mileto94/HackBulgaria
 def test_2(self):
     self.assertEqual(80.0, solution.slope_style_score([60, 70, 80, 90, 100]))
コード例 #31
0
 def test_slope_style_score_2(self):
     self.assertEqual(80.0,
                      solution.slope_style_score([60, 70, 80, 90, 100]))
コード例 #32
0
ファイル: tests.py プロジェクト: EmanuelStoyanov/homework1
 def test_two(self):
     self.assertEqual(80.0, slope_style_score([60, 70, 80, 90, 100]))
コード例 #33
0
 def test_slope_style_score(self):
     self.assertEqual(slope_style_score([94, 95, 95, 95, 90]), 94.66)
     self.assertEqual(slope_style_score([60, 70, 80, 90, 100]), 80.0)
     self.assertEqual(slope_style_score([96, 95.5, 93, 89, 92]), 93.5)
コード例 #34
0
ファイル: tests.py プロジェクト: EmanuelStoyanov/homework1
 def test_one(self):
     self.assertEqual(94.67, slope_style_score([94, 95, 95, 95, 90]))
コード例 #35
0
ファイル: test.py プロジェクト: gshopov/the-stash
 def test_with_numbers_that_will_normally_round_up(self):
     self.assertEqual(solution.slope_style_score([1, 2, 3, 4, 5, 6, 8, 9]),
                      4.66)
コード例 #36
0
 def test_two(self):
     self.assertEqual(80.0, slope_style_score([60, 70, 80, 90, 100]))
コード例 #37
0
ファイル: test.py プロジェクト: gshopov/the-stash
 def test_with_numbers_that_will_normally_round_down(self):
     self.assertEqual(solution.slope_style_score([96, 95.5, 94, 89, 92]),
                      93.83)
コード例 #38
0
ファイル: test.py プロジェクト: gshopov/the-stash
 def test_with_repeating_largest_and_smallest_scores(self):
     self.assertEqual(solution.slope_style_score([1, 1, 2, 3, 4, 6, 6]),
                      3.20)
コード例 #39
0
ファイル: test.py プロジェクト: smo93/hackbulgaria
 def test_slope_style_score(self):
     self.assertEqual(94.66,\
             solution.slope_style_score([94, 95, 95, 95, 90]))
     self.assertEqual(80.0,\
             solution.slope_style_score([60, 70, 80, 90, 100]))