예제 #1
0
 def test_zeros(self):
     result = add_two_numbers(0, 0)
     self.assertEqual(0, result)
예제 #2
0
 def test_both_negative(self):
     result = add_two_numbers(-5, -7)
     self.assertEqual(-12, result)
예제 #3
0
 def test_one_negative(self):
     result = add_two_numbers(5, -7)
     self.assertEqual(-2, result)
예제 #4
0
 def test_both_positive(self):
     result = add_two_numbers(5, 7)
     self.assertEqual(12, result)
예제 #5
0
	def test_both_positive(self):
		result = add_two_numbers(5, 7)
		self.assertEqual(12, result)
예제 #6
0
	def test_zeros(self):
		result = add_two_numbers(0, 0)
		self.assertEqual(0, result)
예제 #7
0
	def test_one_negative(self):
		result = add_two_numbers(5, -7)
		self.assertEqual(-2, result)
예제 #8
0
	def test_both_negative(self):
		result = add_two_numbers(-5, -7)
		self.assertEqual(-12, result)