예제 #1
0
 def test_problem_statement_cases(self):
     self.assertEqual([(2, 2)], goldbach(4))
     self.assertEqual([(3, 3)], goldbach(6))
     self.assertEqual([(3, 5)], goldbach(8))
     self.assertEqual([(3, 7), (5, 5)], goldbach(10))
     self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59),
                       (47, 53)], goldbach(100))
예제 #2
0
 def test_goldbach(self):
     self.assertEqual([(2, 2)], goldbach(4))
     self.assertEqual([(3, 3)], goldbach(6))
     self.assertEqual([(3, 5)], goldbach(8))
     self.assertEqual([(3 ,7), (5, 5)], goldbach(10))
     self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59), (47, 53)],
         goldbach(100))
예제 #3
0
 def test_goldbach(self):
     self.assertEqual([(2, 2)], goldbach(4))
     self.assertEqual([(3, 3)], goldbach(6))
     self.assertEqual([(3, 5)], goldbach(8))
     self.assertEqual([(3, 7), (5, 5)], goldbach(10))
     self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59),
                       (47, 53)], goldbach(100))
예제 #4
0
파일: test.py 프로젝트: smo93/hackbulgaria
 def test_goldbach(self):
     expected = [(2, 2)]
     self.assertEqual(expected, solution.goldbach(4))
     expected = [(3, 7), (5, 5)]
     self.assertEqual(expected, solution.goldbach(10))
     expected = [(3, 97), (11, 89), (17, 83), (29, 71), (41, 59), (47, 53)]
     self.assertEqual(expected, solution.goldbach(100))
예제 #5
0
 def test_goldbach(self):
     res1 = [(2, 2)]
     res2 = [(3, 3)]
     res3 = [(3, 5)]
     res4 = [(3, 7), (5, 5)]
     res5 = [(3, 97), (11, 89), (17, 83), (29, 71), (41, 59), (47, 53)]
     self.assertEqual(res1, goldbach(4))
     self.assertEqual(res2, goldbach(6))
     self.assertEqual(res3, goldbach(8))
     self.assertEqual(res4, goldbach(10))
     self.assertEqual(res5, goldbach(100))
예제 #6
0
 def test_1(self):
     self.assertEqual([(2, 2)], solution.goldbach(4))
예제 #7
0
 def test_4(self):
     self.assertEqual([(3, 7), (5, 5)], solution.goldbach(10))
예제 #8
0
 def test_goldbach_1(self):
     self.assertEqual([(2, 2)], solution.goldbach(4))
예제 #9
0
 def test_goldbach_4(self):
     self.assertEqual([(3, 7), (5, 5)], solution.goldbach(10))
예제 #10
0
 def test_100(self):
     self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59),
                       (47, 53), (53, 47), (59, 41), (71, 29), (83, 17),
                       (89, 11), (97, 3)], goldbach(100))
예제 #11
0
 def test_goldbach5(self):
     self.assertEqual([], solution.goldbach(17))
예제 #12
0
파일: test.py 프로젝트: h3lgi/HackBulgaria
	def test_goldbach_1(self):
		self.assertEqual([(3,7), (5,5)], goldbach(10))
예제 #13
0
파일: test.py 프로젝트: h3lgi/HackBulgaria
	def test_goldbach_2(self):
		self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59), (47, 53)], goldbach(100))
예제 #14
0
 def test_more_coombinations(self):
     self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59), (47, 53)],goldbach(100))
예제 #15
0
 def test_one_combination(self):
     self.assertEqual([(3,3)],goldbach(6))
예제 #16
0
 def test_8(self):
     self.assertEqual([(3, 5), (5, 3)], goldbach(8))
예제 #17
0
	def test_3(self):
		self.assertEqual([(3,5)], goldbach(8))
예제 #18
0
	def test_1(self):
		self.assertEqual([(2,2)], goldbach(4))
예제 #19
0
	def test_2(self):
		self.assertEqual([(3,3)], goldbach(6))
예제 #20
0
 def test_goldbach_3(self):
     self.assertEqual([(3, 5)], solution.goldbach(8))
예제 #21
0
 def test_one_combination(self):
     self.assertEqual([(3, 3)], goldbach(6))
예제 #22
0
 def test_goldbach_5(self):
     self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59),
                       (47, 53)], solution.goldbach(100))
예제 #23
0
 def test_more_coombinations(self):
     self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59),
                       (47, 53)], goldbach(100))
예제 #24
0
 def test_goldbach_2(self):
     self.assertEqual([(3, 3)], solution.goldbach(6))
예제 #25
0
 def test_goldbach5(self):
     self.assertEqual([], solution.goldbach(17))
예제 #26
0
 def test_3(self):
     self.assertEqual([(3, 5)], solution.goldbach(8))
예제 #27
0
파일: test.py 프로젝트: gshopov/the-stash
 def test_with_9(self):
     self.assertEqual(solution.goldbach(9), [(2, 7)])
예제 #28
0
 def test_5(self):
     self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59), (47, 53)], solution.goldbach(100))
예제 #29
0
파일: test.py 프로젝트: gshopov/the-stash
 def test_with_24(self):
     self.assertEqual(solution.goldbach(24), [(5, 19), (7, 17), (11, 13)])
예제 #30
0
 def test_2(self):
     self.assertEqual([(3, 3)], solution.goldbach(6))
예제 #31
0
파일: test.py 프로젝트: gshopov/the-stash
 def test_with_5(self):
     self.assertEqual(solution.goldbach(5), [(2, 3)])
예제 #32
0
 def test_6(self):
     self.assertEqual([(3, 3)], goldbach(6))
예제 #33
0
파일: test.py 프로젝트: gshopov/the-stash
 def test_with_7(self):
     self.assertEqual(solution.goldbach(7), [(2, 5)])
예제 #34
0
 def test_10(self):
     self.assertEqual([(3, 7), (5, 5), (7, 3)], goldbach(10))
예제 #35
0
 def test_problem_statement_cases(self):
     self.assertEqual([(2, 2)], goldbach(4))
     self.assertEqual([(3, 3)], goldbach(6))
     self.assertEqual([(3, 5)], goldbach(8))
     self.assertEqual([(3, 7), (5, 5)], goldbach(10))
     self.assertEqual([(3, 97), (11, 89), (17, 83), (29, 71), (41, 59), (47, 53)], goldbach(100))
예제 #36
0
 def test_4(self):
     self.assertEqual([(2, 2)], goldbach(4))
 def test_goldblach(self):
     self.assertEqual(goldbach(4), [(2, 2)])
     self.assertEqual(goldbach(100), [(3, 97), (11, 89), (17, 83),
                                      (29, 71), (41, 59), (47, 53)])