예제 #1
0
    def test_sum_of_divisors(self):

        self.assertEqual(15, sum_of_divisors(8))
        # 15
        self.assertEqual(8, sum_of_divisors(7))
        # 8
        self.assertEqual(1, sum_of_divisors(1))
        # 1
        self.assertEqual(2340, sum_of_divisors(1000))
예제 #2
0
 def test_sum_of_divisors(self):
     self.assertEqual(15, sum_of_divisors(8))
     self.assertEqual(8, sum_of_divisors(7))
     self.assertEqual(1, sum_of_divisors(1))
     self.assertEqual(2340, sum_of_divisors(1000))
     self.assertEqual(0, sum_of_divisors(0))
     self.assertEqual(6, sum_of_divisors(5))
예제 #3
0
 def test_problem_statement_cases(self):
     self.assertEqual(15, sum_of_divisors(8))
     self.assertEqual(8, sum_of_divisors(7))
     self.assertEqual(1, sum_of_divisors(1))
     self.assertEqual(2340, sum_of_divisors(1000))
예제 #4
0
 def test_sum_of_divisors2(self):
     self.assertEqual(93, solution.sum_of_divisors(50))
예제 #5
0
 def test_sum_of_divisors5(self):
     self.assertEqual(156, solution.sum_of_divisors(99))
예제 #6
0
 def test_sum_of_divisors3(self):
     self.assertEqual(217, solution.sum_of_divisors(100))
예제 #7
0
 def test_sum_of_divisors1(self):
     self.assertEqual(28, solution.sum_of_divisors(12))
예제 #8
0
파일: test.py 프로젝트: smo93/hackbulgaria
 def test_sum_of_divisors(self):
     self.assertEqual(2340, solution.sum_of_divisors(1000))
     self.assertEqual(15, solution.sum_of_divisors(8))
예제 #9
0
 def test_sum_of_divisors_of_prime_big_number_23(self):
     self.assertEqual(solution.sum_of_divisors(23),24)
예제 #10
0
 def test_vour(self):
     self.assertEquals(2340, sum_of_divisors(1000))
예제 #11
0
 def test_tree(self):
     self.assertEquals(1, sum_of_divisors(1))
예제 #12
0
	def test_not_prime(self):
		self.assertEqual(15,sum_of_divisors(8))
		self.assertEqual(2340,sum_of_divisors(1000))
예제 #13
0
	def test_prime(self):
		self.assertEqual(8,sum_of_divisors(7))
		self.assertEqual(1,sum_of_divisors(1))
 def test_solution(self):
     self.assertEqual(15, sum_of_divisors(8))
     self.assertEqual(8, sum_of_divisors(7))
     self.assertEqual(1, sum_of_divisors(1))
     self.assertEqual(2340, sum_of_divisors(1000))
예제 #15
0
	def testSumAllDiv(self):
		self.assertEqual(15,sum_of_divisors(8))
		self.assertEqual(8,sum_of_divisors(7))
		self.assertEqual(1,sum_of_divisors(1))
		self.assertEqual(2340,sum_of_divisors(1000))
예제 #16
0
 def test_one(self):
     self.assertEqual(15,solution.sum_of_divisors(8))
예제 #17
0
 def test_three(self):
     self.assertEqual(1,solution.sum_of_divisors(1))
예제 #18
0
 def test_one(self):
     self.assertEquals(15, sum_of_divisors(8))
예제 #19
0
 def test_sum_of_divisors_of_1(self):
     self.assertEqual(solution.sum_of_divisors(1),1)
예제 #20
0
 def test_two(self):
     self.assertEquals(8, sum_of_divisors(7))
예제 #21
0
 def test_sum_of_divisors4(self):
     self.assertEqual(18, solution.sum_of_divisors(17))
예제 #22
0
	def test_3(self):
		self.assertEqual(1, sum_of_divisors(1))
예제 #23
0
 def test_sum_of_divisors(self):
     self.assertEqual(8, sum_of_divisors(7))
     self.assertEqual(2340, sum_of_divisors(1000))
예제 #24
0
	def test_4(self):
		self.assertEqual(2340, sum_of_divisors(1000))
예제 #25
0
 def test_sum_of_divisors4(self):
     self.assertEqual(18, solution.sum_of_divisors(17))
예제 #26
0
	def test_1(self):
		self.assertEqual(15, sum_of_divisors(8))
예제 #27
0
 def test_sum_of_divisors1(self):
     self.assertEqual(28, solution.sum_of_divisors(12))
예제 #28
0
	def test_2(self):
		self.assertEqual(8, sum_of_divisors(7))
예제 #29
0
	def test_zero(self):
		self.assertEqual(0, solution.sum_of_divisors(0))
예제 #30
0
	def test_negative_number(self):
		self.assertEqual(15, solution.sum_of_divisors(-8))
예제 #31
0
 def test_four(self):
     self.assertEqual(2340,solution.sum_of_divisors(1000))
예제 #32
0
	def test_big_numbers(self):
		self.assertEqual(42, solution.sum_of_divisors(20))
		self.assertEqual(2340, solution.sum_of_divisors(1000))
예제 #33
0
 def test_two(self):
     self.assertEqual(8,solution.sum_of_divisors(7))
예제 #34
0
파일: test.py 프로젝트: lytenica/Zadachi
 def test_sum_of_divisors(self):
     self.assertEqual(15,sum_of_divisors(8))
     self.assertEqual(8,sum_of_divisors(7))
예제 #35
0
 def test_sum_of_divisors_of_prime_7(self):
     self.assertEqual(solution.sum_of_divisors(7),8)
예제 #36
0
 def test_three(self):
     self.assertEqual(1, solution.sum_of_divisors(1))
예제 #37
0
 def test_sum_of_divisors_of_0(self):
     self.assertEqual(solution.sum_of_divisors(0),0)
예제 #38
0
 def test_four(self):
     self.assertEqual(2340, solution.sum_of_divisors(1000))
예제 #39
0
 def test_sum_of_divisors(self):
     self.assertEqual(15, sum_of_divisors(8))
     self.assertEqual(8, sum_of_divisors(7))
     self.assertEqual(1, sum_of_divisors(1))
     self.assertEqual(2340, sum_of_divisors(1000))
예제 #40
0
 def test_one(self):
     self.assertEqual(15, solution.sum_of_divisors(8))
예제 #41
0
 def test_sum_of_divisors3(self):
     self.assertEqual(217, solution.sum_of_divisors(100))
예제 #42
0
 def test_two(self):
     self.assertEqual(8, solution.sum_of_divisors(7))
예제 #43
0
 def test_sum_of_divisors5(self):
     self.assertEqual(156, solution.sum_of_divisors(99))
예제 #44
0
 def test_problem_statement_cases(self):
     self.assertEqual(15, sum_of_divisors(8))
     self.assertEqual(8, sum_of_divisors(7))
     self.assertEqual(1, sum_of_divisors(1))
     self.assertEqual(2340, sum_of_divisors(1000))
예제 #45
0
 def test_sum_of_divisors2(self):
     self.assertEqual(93, solution.sum_of_divisors(50))
예제 #46
0
 def test_sum_of_divisors(self):
     self.assertEqual(2340, solution.sum_of_divisors(1000))
     self.assertEqual(15, solution.sum_of_divisors(8))