def my_sum(a,b):
a += 1
b +=2
return a+b
# 断言
#判断值
def test_005(self):
number = my_sum(2,3)
self.assertEqual(number,8)
#判断该值在不在列表里
def test_006(self):
number = my_sum(2,3)
self.assertIn(number,[2,3,4,5,8])
2024-01-20 19:46:17
def my_sum(a,b):
a += 1
b +=2
return a+b
# 断言
#判断值
def test_005(self):
number = my_sum(2,3)
self.assertEqual(number,8)
#判断该值在不在列表里
def test_006(self):
number = my_sum(2,3)
self.assertIn(number,[2,3,4,5,8])